Skip to content

Commit 9cb8de8

Browse files
authored
internal/debug: convert legacy log level value in debug_verbosity (#29356)
1 parent 9dfe728 commit 9cb8de8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/debug/api.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import (
2424
"bytes"
2525
"errors"
2626
"io"
27-
"log/slog"
2827
"os"
2928
"os/user"
3029
"path/filepath"
@@ -57,7 +56,7 @@ type HandlerT struct {
5756
// Verbosity sets the log verbosity ceiling. The verbosity of individual packages
5857
// and source files can be raised using Vmodule.
5958
func (*HandlerT) Verbosity(level int) {
60-
glogger.Verbosity(slog.Level(level))
59+
glogger.Verbosity(log.FromLegacyLevel(level))
6160
}
6261

6362
// Vmodule sets the log verbosity pattern. See package log for details on the

0 commit comments

Comments
 (0)