Skip to content

Commit

Permalink
use default flush interval
Browse files Browse the repository at this point in the history
  • Loading branch information
aine-etke committed Dec 5, 2024
1 parent f59e778 commit b36fccc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"fmt"
"os"
"time"

sentryzerolog "github.com/getsentry/sentry-go/zerolog"
"github.com/rs/zerolog"
Expand Down Expand Up @@ -58,7 +57,6 @@ func newSentryWriter(ctx context.Context) (zerolog.LevelWriter, error) {

return sentryzerolog.NewWithHub(GetHub(ctx), sentryzerolog.Options{
Levels: []zerolog.Level{zerolog.ErrorLevel, zerolog.FatalLevel, zerolog.PanicLevel},
FlushTimeout: 5 * time.Second,
WithBreadcrumbs: true,
})
}

0 comments on commit b36fccc

Please sign in to comment.