Skip to content

Commit f23b8e0

Browse files
authored
Merge pull request #3326 from Pana/chore/opLog
chore: optimize bytes log format from number array to hex string
2 parents d6eba9e + 11106e4 commit f23b8e0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

crates/dbs/storage/src/impls/merkle_patricia_trie/mpt_cursor.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -527,18 +527,18 @@ impl<Mpt: GetRwMpt, PathNode: RwPathNodeTrait<Mpt>> MptCursorRw<Mpt, PathNode> {
527527
} else {
528528
warn!(
529529
"In MptCursorRw, non-existing key {:?} is asked to be deleted.",
530-
key);
530+
key.to_hex::<String>());
531531
}
532532
}
533533
CursorOpenPathTerminal::PathDiverted(_) => {
534534
warn!(
535535
"In MptCursorRw, non-existing key {:?} is asked to be deleted.",
536-
key);
536+
key.to_hex::<String>());
537537
}
538538
CursorOpenPathTerminal::ChildNotFound { .. } => {
539539
warn!(
540540
"In MptCursorRw, non-existing key {:?} is asked to be deleted.",
541-
key);
541+
key.to_hex::<String>());
542542
}
543543
}
544544
Ok(())
@@ -1617,6 +1617,7 @@ use crate::{
16171617
utils::access_mode,
16181618
};
16191619
use primitives::{MerkleHash, MptValue, MERKLE_NULL_NODE};
1620+
use rustc_hex::ToHex;
16201621
use std::{
16211622
cell::Cell,
16221623
mem,

0 commit comments

Comments
 (0)