Resolves #18. Log panics to the Sentry

This commit is contained in:
ErickSkrauch
2020-04-20 17:12:58 +03:00
parent d9fbfe658a
commit bca1436baf
2 changed files with 24 additions and 4 deletions

View File

@@ -66,6 +66,8 @@ func newSentry(config *viper.Viper) (*raven.Client, error) {
ravenClient.SetDefaultLoggerName("sentry-watchdog-receiver")
ravenClient.SetRelease(version.Version())
raven.DefaultClient = ravenClient
return ravenClient, nil
}