Skip to content

Commit

Permalink
Fix sentry warning on boot
Browse files Browse the repository at this point in the history
  • Loading branch information
rtm516 committed Mar 14, 2024
1 parent 55023b1 commit ae2435a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/org/geysermc/discordbot/GeyserBot.java
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ public static void main(String[] args) throws IOException {
Sentry.init(options -> {
options.setDsn(PropertiesManager.getSentryDsn());
options.setEnvironment(PropertiesManager.getSentryEnv());
options.setEnabled(true);
LOGGER.info("Sentry.io loaded");
});
}
Expand Down
3 changes: 3 additions & 0 deletions src/main/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

<!-- Configure the Sentry appender, overriding the logging threshold to the WARN level -->
<appender name="Sentry" class="io.sentry.logback.SentryAppender">
<options>
<enabled>false</enabled>
</options>
</appender>

<!-- Enable the Console and Sentry appenders, Console is provided as an example
Expand Down

0 comments on commit ae2435a

Please sign in to comment.