Skip to content

Commit

Permalink
Fix exception when starting sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed May 10, 2024
1 parent d02b721 commit 4a02b23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/src/main/kotlin/dev/schlaubi/musicbot/core/Bot.kt
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,11 @@ class Bot(repos: List<UpdateRepository>) : KordExKoinComponent, PluginContext {
sentry {
enable = Config.ENVIRONMENT.useSentry
pingInReply = false
dsn = Config.SENTRY_TOKEN

val sentryExtensions = pluginSystem.getExtensions<SentryExtensionPoint>()
setupCallback = {
init {
dsn = Config.SENTRY_TOKEN
for (extension in sentryExtensions) {
with(extension) {
it.setup()
Expand Down

0 comments on commit 4a02b23

Please sign in to comment.