mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
fix: remove log level in debug.Setup
This commit is contained in:
parent
c394b097a5
commit
814fee95c8
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue