Skip to content

Commit

Permalink
fix review
Browse files Browse the repository at this point in the history
  • Loading branch information
Danil42Russia committed Dec 9, 2023
1 parent caae1e7 commit 260d0db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/kotlin/com/vk/admstorm/services/SentryService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ class SentryService(project: Project) {
}

val config = ConfigService.getInstance(project)
val plugin = PluginManagerCore.getPlugin(AdmService.PLUGIN_ID)
val application = ApplicationInfo.getInstance()

if (config.sentryDsn.isEmpty()) {
LOG.info("Sending errors to Sentry is disabled. DSN is not specified")
return
}

val plugin = PluginManagerCore.getPlugin(AdmService.PLUGIN_ID)
val application = ApplicationInfo.getInstance()

LOG.info("Sending errors to Sentry is enabled")
Sentry.init { options ->
options.dsn = config.sentryDsn
Expand Down

0 comments on commit 260d0db

Please sign in to comment.