Skip to content

Commit

Permalink
Sentry hates me
Browse files Browse the repository at this point in the history
  • Loading branch information
sschr15 committed Dec 7, 2023
1 parent d036890 commit c71c0d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/main/kotlin/org/quiltmc/community/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,6 @@ suspend fun setupLadysnake() = ExtensibleBot(DISCORD_TOKEN) {

sentry {
distribution = "ladysnake"
dsn = envOrNull("SENTRY_DSN")
}
}
}
Expand Down
8 changes: 3 additions & 5 deletions src/main/kotlin/org/quiltmc/community/_Utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,10 @@ suspend fun ExtensibleBotBuilder.common() {
}

extensions {
sentry {
val sentryDsn = envOrNull("SENTRY_DSN")

if (sentryDsn != null) {
val sentryDsn = envOrNull("SENTRY_DSN")
if (sentryDsn != null) {
sentry {
enable = true

dsn = sentryDsn
}
}
Expand Down

0 comments on commit c71c0d7

Please sign in to comment.