We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2facbb6 commit 1161c8bCopy full SHA for 1161c8b
internal/global/logging.go
@@ -63,6 +63,9 @@ func Error(msg error) {
63
// This wrapper converts structured log data into a string message for
64
// backward compatibility with older unstructured logs.
65
func Debugf(msg string, keysAndValues ...any) {
66
+ if !GetLogger().Enabled(context.Background(), slog.LevelDebug) {
67
+ return
68
+ }
69
GetLogger().Debug(fmt.Sprintf(msg, keysAndValues...))
70
}
71
0 commit comments