Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Commit

Permalink
clean (erigontech#2473)
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov authored Jul 30, 2021
1 parent 286572e commit fad3002
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/debug/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,16 +115,16 @@ func init() {

func SetupCobra(cmd *cobra.Command) error {
flags := cmd.Flags()
lvl, err := flags.GetInt(verbosityFlag.Name)
if err != nil {
return err
}

/*
dbg, err := flags.GetBool(debugFlag.Name)
if err != nil {
return err
}
lvl, err := flags.GetInt(verbosityFlag.Name)
if err != nil {
return err
}
vmodule, err := flags.GetString(vmoduleFlag.Name)
if err != nil {
return err
Expand All @@ -137,7 +137,7 @@ func SetupCobra(cmd *cobra.Command) error {
_, glogger = log.SetupDefaultTerminalLogger(log.Lvl(lvl), vmodule, backtrace)
log.PrintOrigins(dbg)
*/
log.Root().SetHandler(log.LvlFilterHandler(log.LvlInfo, log.StderrHandler))
log.Root().SetHandler(log.LvlFilterHandler(log.Lvl(lvl), log.StderrHandler))

memprofilerate, err := flags.GetInt(memprofilerateFlag.Name)
if err != nil {
Expand Down

0 comments on commit fad3002

Please sign in to comment.