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