Merge pull request #146 from getAlby/bad-auth-sentry

Do not send bad auth errors to sentry
This commit is contained in:
kiwiidb
2022-04-07 15:51:11 +02:00
committed by GitHub
4 changed files with 9 additions and 8 deletions

View File

@@ -94,7 +94,8 @@ func main() {
// Setup exception tracking with Sentry if configured
if c.SentryDSN != "" {
if err = sentry.Init(sentry.ClientOptions{
Dsn: c.SentryDSN,
Dsn: c.SentryDSN,
IgnoreErrors: []string{"401"},
}); err != nil {
logger.Errorf("sentry init error: %v", err)
}