Skip to content

Commit

Permalink
fix logging
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangchiqing committed Jun 18, 2024
1 parent 00a37c3 commit 3bf99df
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cmd/util/cmd/find-trie-root/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 3bf99df

Please sign in to comment.