]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/log/slog/handler.go
log/slog: add LogLoggerLevel to enable setting level on the default logger
[gostls13.git] / src / log / slog / handler.go
index a6c643cdb94b4fd22ebb0ad2fca687e9898c911f..9f6d88b1696bf71b2f046f8527e4bf1b1c34cc25 100644 (file)
@@ -100,7 +100,7 @@ func newDefaultHandler(output func(uintptr, []byte) error) *defaultHandler {
 }
 
 func (*defaultHandler) Enabled(_ context.Context, l Level) bool {
-       return l >= LevelInfo
+       return l >= logLoggerLevel.Level()
 }
 
 // Collect the level, attributes and message in a string and