From d74fd83cba3d0ab54dce68369a169c82853f6b07 Mon Sep 17 00:00:00 2001 From: VM Date: Thu, 21 Nov 2024 11:26:48 +0800 Subject: [PATCH] fix: optimize logs --- triedb/pathdb/journal.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/triedb/pathdb/journal.go b/triedb/pathdb/journal.go index 21a1a5465..eb7df892c 100644 --- a/triedb/pathdb/journal.go +++ b/triedb/pathdb/journal.go @@ -371,7 +371,8 @@ func (db *Database) loadDiskLayer(r *rlp.Stream, journalTypeForReader JournalTyp if db.config.TrieNodeBufferType == NodeBufferList && !db.useBase { recoveredRoot, recoveredStateID, _ := nb.getLatestStatus() if recoveredRoot != root && recoveredStateID != id { - log.Error("Recovered state root and state id are different from recording ones") + log.Error("Recovered state root and state id are different from recording ones", + "recovered_root", recoveredRoot, "root", root, "recovered_state_id", recoveredStateID, "id", id) return nil, errors.New("Unmatched root and state id with recovered") }