feat: adjust sentry logging level
This commit is contained in:
parent
9d1cf31d89
commit
7b6f98d67a
@ -76,7 +76,9 @@ func getBuildTime() time.Time {
|
||||
func setupSentry() {
|
||||
err := sentry.Init(sentry.ClientOptions{
|
||||
Dsn: SentryDSN,
|
||||
AttachStacktrace: true,
|
||||
EnableTracing: false,
|
||||
IgnoreErrors: []string{},
|
||||
SendDefaultPII: true,
|
||||
Release: GitCommit,
|
||||
})
|
||||
|
@ -57,9 +57,9 @@ func NewService(i *do.Injector) (Service, error) {
|
||||
|
||||
func attachSentry(log *zap.Logger) *zap.Logger {
|
||||
cfg := zapsentry.Configuration{
|
||||
Level: zapcore.ErrorLevel,
|
||||
Level: zapcore.DPanicLevel,
|
||||
EnableBreadcrumbs: true,
|
||||
BreadcrumbLevel: zapcore.InfoLevel,
|
||||
BreadcrumbLevel: zapcore.DebugLevel,
|
||||
}
|
||||
|
||||
core, err := zapsentry.NewCore(cfg, zapsentry.NewSentryClientFromClient(sentry.CurrentHub().Client()))
|
||||
|
Loading…
Reference in New Issue
Block a user