unify spacing on state trace logs (#5932)

This commit is contained in:
Shawn Tabrizi
2020-05-07 09:24:07 +02:00
committed by GitHub
parent 848803aba2
commit a9523dbc37
@@ -420,7 +420,7 @@ where
key: Vec<u8>,
value: Vec<u8>,
) {
trace!(target: "state", "{:04x}: Append({}) {}",
trace!(target: "state", "{:04x}: Append {}={}",
self.id,
HexDisplay::from(&key),
HexDisplay::from(&value),
@@ -444,7 +444,7 @@ where
fn storage_root(&mut self) -> Vec<u8> {
let _guard = sp_panic_handler::AbortGuard::force_abort();
if let Some(ref root) = self.storage_transaction_cache.transaction_storage_root {
trace!(target: "state", "{:04x}: Root (cached) {}",
trace!(target: "state", "{:04x}: Root(cached) {}",
self.id,
HexDisplay::from(&root.as_ref()),
);
@@ -470,7 +470,7 @@ where
.unwrap_or(
empty_child_trie_root::<Layout<H>>()
);
trace!(target: "state", "{:04x}: ChildRoot({}) (cached) {}",
trace!(target: "state", "{:04x}: ChildRoot({})(cached) {}",
self.id,
HexDisplay::from(&storage_key),
HexDisplay::from(&root.as_ref()),
@@ -518,7 +518,7 @@ where
.unwrap_or(
empty_child_trie_root::<Layout<H>>()
);
trace!(target: "state", "{:04x}: ChildRoot({}) (no change) {}",
trace!(target: "state", "{:04x}: ChildRoot({})(no_change) {}",
self.id,
HexDisplay::from(&storage_key.as_ref()),
HexDisplay::from(&root.as_ref()),