Skip to content

Commit 846d578

Browse files
authored
core/state: fix log format (ethereum#31610)
Log `key` in hexadecimal string format.
1 parent ebb3eb2 commit 846d578

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/state/dump.go

+1-1
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)