From 3bf99dfc8049a997d57fa01e4ce271bf051c13ea Mon Sep 17 00:00:00 2001 From: "Leo Zhang (zhangchiqing)" Date: Tue, 18 Jun 2024 10:44:15 -0700 Subject: [PATCH] fix logging --- cmd/util/cmd/find-trie-root/cmd.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cmd/util/cmd/find-trie-root/cmd.go b/cmd/util/cmd/find-trie-root/cmd.go index b07225c16fd..50f843c0026 100644 --- a/cmd/util/cmd/find-trie-root/cmd.go +++ b/cmd/util/cmd/find-trie-root/cmd.go @@ -195,15 +195,12 @@ func searchRootHashInSegments( return 0, 0, fmt.Errorf("cannot decode LedgerWAL record: %w", err) } - lg = lg.With(). - Uint8("operation", uint8(operation)). - Logger() - switch operation { case wal.WALUpdate: rootHash := update.RootHash - lg.Debug(). + log.Debug(). + Uint8("operation", uint8(operation)). Str("root-hash", rootHash.String()). Msg("found WALUpdate")