Skip to content

Commit

Permalink
fix: fix log
Browse files Browse the repository at this point in the history
  • Loading branch information
krish-nr committed May 15, 2024
1 parent 31f68a8 commit c32737f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd/bootnode/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ import (
"github.com/ethereum/go-ethereum/p2p/enode"
"github.com/ethereum/go-ethereum/p2p/nat"
"github.com/ethereum/go-ethereum/p2p/netutil"
"golang.org/x/exp/slog"
"io"
)

func main() {
Expand All @@ -64,7 +62,7 @@ func main() {
flag.Parse()

//set log
var (
/*var (
handler slog.Handler
glogger *log.GlogHandler
terminalOutput = io.Writer(os.Stderr)
Expand All @@ -81,6 +79,9 @@ func main() {
handler = log.LogfmtHandler(output)
glogger = log.NewGlogHandler(handler)
*/
glogger := log.NewGlogHandler(log.NewTerminalHandler(os.Stderr, false))

slogVerbosity := log.FromLegacyLevel(*verbosity)
glogger.Verbosity(slogVerbosity)
glogger.Vmodule(*vmodule)
Expand Down

0 comments on commit c32737f

Please sign in to comment.