fix: remove log level in debug.Setup

This commit is contained in:
thinkAfCod 2024-11-10 23:28:34 +08:00 committed by Chen Kai
parent c394b097a5
commit 814fee95c8

View file

@ -252,8 +252,8 @@ func Setup(ctx *cli.Context) error {
glogger = log.NewGlogHandler(handler) glogger = log.NewGlogHandler(handler)
// logging // logging
verbosity := log.FromLegacyLevel(ctx.Int(verbosityFlag.Name)) //verbosity := log.FromLegacyLevel(ctx.Int(verbosityFlag.Name))
glogger.Verbosity(verbosity) //glogger.Verbosity(verbosity)
vmodule := ctx.String(logVmoduleFlag.Name) vmodule := ctx.String(logVmoduleFlag.Name)
if vmodule == "" { if vmodule == "" {
// Retain backwards compatibility with `--vmodule` flag if `--log.vmodule` not set // Retain backwards compatibility with `--vmodule` flag if `--log.vmodule` not set
@ -264,7 +264,7 @@ func Setup(ctx *cli.Context) error {
} }
glogger.Vmodule(vmodule) glogger.Vmodule(vmodule)
log.SetDefault(log.NewLogger(glogger)) //log.SetDefault(log.NewLogger(glogger))
// profiling, tracing // profiling, tracing
runtime.MemProfileRate = memprofilerateFlag.Value runtime.MemProfileRate = memprofilerateFlag.Value