internal/debug: convert legacy log level value in debug_verbosity (#29356)

pull/29451/head
lightclient 6 months ago committed by GitHub
parent 9dfe728909
commit 9cb8de8703
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      internal/debug/api.go

@ -24,7 +24,6 @@ import (
"bytes"
"errors"
"io"
"log/slog"
"os"
"os/user"
"path/filepath"
@ -57,7 +56,7 @@ type HandlerT struct {
// Verbosity sets the log verbosity ceiling. The verbosity of individual packages
// and source files can be raised using Vmodule.
func (*HandlerT) Verbosity(level int) {
glogger.Verbosity(slog.Level(level))
glogger.Verbosity(log.FromLegacyLevel(level))
}
// Vmodule sets the log verbosity pattern. See package log for details on the

Loading…
Cancel
Save