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

Commit 303e5f9

Browse files
Removed Sentry
1 parent a2abdca commit 303e5f9

File tree

5 files changed

+1
-15
lines changed

5 files changed

+1
-15
lines changed

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ Your microservice will be supported by the [game-server of cryptic](https://gith
3434
| PRODUCTIVE | true |
3535
| STORAGE_LOCATION | data/ |
3636
| LOG_LEVEL | WARN |
37-
| SENTRY_DSN | |
3837

3938
## Wiki
4039

pom.xml

-5
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,5 @@
9393
<artifactId>reflections</artifactId>
9494
<version>0.9.12</version>
9595
</dependency>
96-
<dependency>
97-
<groupId>io.sentry</groupId>
98-
<artifactId>sentry</artifactId>
99-
<version>1.7.30</version>
100-
</dependency>
10196
</dependencies>
10297
</project>

src/main/java/net/cryptic_game/microservice/MicroService.java

-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import io.netty.channel.epoll.EpollSocketChannel;
88
import io.netty.channel.nio.NioEventLoopGroup;
99
import io.netty.channel.socket.nio.NioSocketChannel;
10-
import io.sentry.Sentry;
1110
import net.cryptic_game.microservice.config.Config;
1211
import net.cryptic_game.microservice.config.DefaultConfig;
1312
import net.cryptic_game.microservice.endpoint.MicroServiceEndpoint;
@@ -64,10 +63,6 @@ public MicroService(String name) {
6463

6564
instance = this;
6665

67-
if (!Config.get(DefaultConfig.SENTRY_DSN).equals("")) {
68-
Sentry.init(Config.get(DefaultConfig.SENTRY_DSN));
69-
}
70-
7166
final SqlService instance = SqlService.getInstance();
7267
new Reflections("net.cryptic_game.microservice").getTypesAnnotatedWith(Entity.class).forEach(instance::addEntity);
7368
instance.start();

src/main/java/net/cryptic_game/microservice/config/DefaultConfig.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ public enum DefaultConfig {
1818

1919
PRODUCTIVE(true),
2020
STORAGE_LOCATION("data/"),
21-
LOG_LEVEL("WARN"),
22-
SENTRY_DSN("");
21+
LOG_LEVEL("WARN");
2322

2423

2524
private final Object value;

src/main/resources/log4j2.xml

-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@
66
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}">
77
</PatternLayout>
88
</Console>
9-
<Sentry name="Sentry"/>
109
</Appenders>
1110
<Loggers>
1211
<Root level="info" additivity="false">
1312
<AppenderRef ref="console"/>
14-
<AppenderRef ref="Sentry" level="WARN"/>
1513
</Root>
1614
<Logger name="SysOut" level="trace"/>
1715
<Logger name="SysErr" level="error"/>

0 commit comments

Comments
 (0)