Skip to content
This repository has been archived by the owner on Dec 11, 2021. It is now read-only.

Commit

Permalink
Removed Sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
JannikEmmerich committed Jan 13, 2021
1 parent a2abdca commit 303e5f9
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 15 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ Your microservice will be supported by the [game-server of cryptic](https://gith
| PRODUCTIVE | true |
| STORAGE_LOCATION | data/ |
| LOG_LEVEL | WARN |
| SENTRY_DSN | |

## Wiki

Expand Down
5 changes: 0 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,5 @@
<artifactId>reflections</artifactId>
<version>0.9.12</version>
</dependency>
<dependency>
<groupId>io.sentry</groupId>
<artifactId>sentry</artifactId>
<version>1.7.30</version>
</dependency>
</dependencies>
</project>
5 changes: 0 additions & 5 deletions src/main/java/net/cryptic_game/microservice/MicroService.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import io.netty.channel.epoll.EpollSocketChannel;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.nio.NioSocketChannel;
import io.sentry.Sentry;
import net.cryptic_game.microservice.config.Config;
import net.cryptic_game.microservice.config.DefaultConfig;
import net.cryptic_game.microservice.endpoint.MicroServiceEndpoint;
Expand Down Expand Up @@ -64,10 +63,6 @@ public MicroService(String name) {

instance = this;

if (!Config.get(DefaultConfig.SENTRY_DSN).equals("")) {
Sentry.init(Config.get(DefaultConfig.SENTRY_DSN));
}

final SqlService instance = SqlService.getInstance();
new Reflections("net.cryptic_game.microservice").getTypesAnnotatedWith(Entity.class).forEach(instance::addEntity);
instance.start();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ public enum DefaultConfig {

PRODUCTIVE(true),
STORAGE_LOCATION("data/"),
LOG_LEVEL("WARN"),
SENTRY_DSN("");
LOG_LEVEL("WARN");


private final Object value;
Expand Down
2 changes: 0 additions & 2 deletions src/main/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
pattern="[%style{%d{yyyy-MM-dd HH:mm:ss}}{cyan}] [%style{%highlight{%5p}{FATAL=red, ERROR=red, WARN=yellow, INFO=blue, DEBUG=reset, TRACE=reset}}{Bright}] [%style{Microservice}{cyan}] [%style{%15.15t}{cyan}] %style{%-40.40c{1.}}{cyan} : %style{%highlight{%m%n%ex}{FATAL=red, ERROR=red, WARN=yellow, INFO=blue, DEBUG=reset, TRACE=reset}}{Bright}">
</PatternLayout>
</Console>
<Sentry name="Sentry"/>
</Appenders>
<Loggers>
<Root level="info" additivity="false">
<AppenderRef ref="console"/>
<AppenderRef ref="Sentry" level="WARN"/>
</Root>
<Logger name="SysOut" level="trace"/>
<Logger name="SysErr" level="error"/>
Expand Down

0 comments on commit 303e5f9

Please sign in to comment.