From 27f761729d11c6b84ef2296144f8d4b154e01cc0 Mon Sep 17 00:00:00 2001 From: Kieran Klukas <92754843+kcoderhtml@users.noreply.github.com> Date: Fri, 20 Dec 2024 17:59:22 -0500 Subject: [PATCH] chore: make default level in prod warn --- config/sentry.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/config/sentry.go b/config/sentry.go index 59e9d183..68931160 100644 --- a/config/sentry.go +++ b/config/sentry.go @@ -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 @@ -27,7 +28,7 @@ func Log() *SentryLogger { return sentryLogger } - level := slog.LevelInfo + level := slog.LevelWarn if Get().IsDev() { level = slog.LevelDebug }