From 4a02b23ef34f483e1539cbf3ff4e25737ce50fa8 Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Fri, 10 May 2024 21:42:54 +0200 Subject: [PATCH] Fix exception when starting sentry --- runtime/src/main/kotlin/dev/schlaubi/musicbot/core/Bot.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/main/kotlin/dev/schlaubi/musicbot/core/Bot.kt b/runtime/src/main/kotlin/dev/schlaubi/musicbot/core/Bot.kt index c57cab07d..07b12cd02 100644 --- a/runtime/src/main/kotlin/dev/schlaubi/musicbot/core/Bot.kt +++ b/runtime/src/main/kotlin/dev/schlaubi/musicbot/core/Bot.kt @@ -99,11 +99,11 @@ class Bot(repos: List) : KordExKoinComponent, PluginContext { sentry { enable = Config.ENVIRONMENT.useSentry pingInReply = false + dsn = Config.SENTRY_TOKEN val sentryExtensions = pluginSystem.getExtensions() setupCallback = { init { - dsn = Config.SENTRY_TOKEN for (extension in sentryExtensions) { with(extension) { it.setup()