Skip to content

Commit 0b81bcc

Browse files
mask-pp0g-wh
authored andcommitted
core/state: fix log format (ethereum#31610)
Log `key` in hexadecimal string format.
1 parent c042cd4 commit 0b81bcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/state/dump.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ func (s *StateDB) DumpToCollector(c DumpCollector, conf *DumpConfig) (nextKey []
188188
c.OnAccount(address, account)
189189
accounts++
190190
if time.Since(logged) > 8*time.Second {
191-
log.Info("Trie dumping in progress", "at", it.Key, "accounts", accounts,
191+
log.Info("Trie dumping in progress", "at", common.Bytes2Hex(it.Key), "accounts", accounts,
192192
"elapsed", common.PrettyDuration(time.Since(start)))
193193
logged = time.Now()
194194
}

0 commit comments

Comments
 (0)