Skip to content

Commit

Permalink
chore: make default level in prod warn
Browse files Browse the repository at this point in the history
  • Loading branch information
taciturnaxolotl committed Dec 20, 2024
1 parent 846a8ad commit 27f7617
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions config/sentry.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
package config

import (
"github.com/getsentry/sentry-go"
slogmulti "github.com/samber/slog-multi"
slogsentry "github.com/samber/slog-sentry/v2"
"log/slog"
"net/http"
"os"
"strings"
"time"

"github.com/getsentry/sentry-go"
slogmulti "github.com/samber/slog-multi"
slogsentry "github.com/samber/slog-sentry/v2"
)

// How to: Logging
Expand All @@ -27,7 +28,7 @@ func Log() *SentryLogger {
return sentryLogger
}

level := slog.LevelInfo
level := slog.LevelWarn
if Get().IsDev() {
level = slog.LevelDebug
}
Expand Down

0 comments on commit 27f7617

Please sign in to comment.