Closed cheshir closed 7 years ago
@cheshir Would you check error from NewAsyncSentryHook()
?
I got sentry's DSN error on the snippets.
hook, err := logrus_sentry.NewAsyncSentryHook(dsn, []log.Level{
log.PanicLevel,
log.FatalLevel,
log.ErrorLevel,
log.WarnLevel,
})
if err != nil {
panic(err) // => panic: raven: dsn missing public key and/or password
}
@evalphobia Did you set up it properly?
@evalphobia I have a problem only when hook.StacktraceConfiguration.Enable = true
.
If I comment this line all works well but without stacktrace.
@cheshir I found some error when stack frame is shallow and skipped, then nil value is added to the packet. It causes panic on sentry client.
I fixed it on v0.2.14
tag, would you confirm is it fixed on your case?
https://github.com/evalphobia/logrus_sentry/releases/tag/v0.2.14
Thank you for your report!
@evalphobia Thank you for fast response. Yes, all works well.
I'm trying to log errors with stacktraces in goroutines but every time caught a panic.
Here is a snippet.
Here is a panic message:
What I'm doing wrong?