Skip to content

Commit 814fee9

Browse files
thinkAfCodGrapeBaBa
authored andcommitted
fix: remove log level in debug.Setup
1 parent c394b09 commit 814fee9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

internal/debug/flags.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ func Setup(ctx *cli.Context) error {
252252
glogger = log.NewGlogHandler(handler)
253253

254254
// logging
255-
verbosity := log.FromLegacyLevel(ctx.Int(verbosityFlag.Name))
256-
glogger.Verbosity(verbosity)
255+
//verbosity := log.FromLegacyLevel(ctx.Int(verbosityFlag.Name))
256+
//glogger.Verbosity(verbosity)
257257
vmodule := ctx.String(logVmoduleFlag.Name)
258258
if vmodule == "" {
259259
// Retain backwards compatibility with `--vmodule` flag if `--log.vmodule` not set
@@ -264,7 +264,7 @@ func Setup(ctx *cli.Context) error {
264264
}
265265
glogger.Vmodule(vmodule)
266266

267-
log.SetDefault(log.NewLogger(glogger))
267+
//log.SetDefault(log.NewLogger(glogger))
268268

269269
// profiling, tracing
270270
runtime.MemProfileRate = memprofilerateFlag.Value

0 commit comments

Comments
 (0)