mirror of
https://github.com/getAlby/lndhub.go.git
synced 2025-12-23 07:35:04 +01:00
Merge pull request #146 from getAlby/bad-auth-sentry
Do not send bad auth errors to sentry
This commit is contained in:
3
main.go
3
main.go
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user