Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
client/mmr: adjust logging levels to avoid spam
  • Loading branch information
acatangiu committed Nov 29, 2022
commit 1511a5363df447f8d9df192e81faae5179ac4fe1
9 changes: 6 additions & 3 deletions client/merkle-mountain-range/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,16 @@ where
}
},
_ => {
trace!(target: LOG_TARGET, "Finality notification: {:?}", notification);
debug!(target: LOG_TARGET, "Waiting for MMR pallet to become available ...");
trace!(
target: LOG_TARGET,
"Waiting for MMR pallet to become available... (best finalized {:?})",
notification.header.number()
);
},
}
}

warn!(
error!(
target: LOG_TARGET,
"Finality notifications stream closed unexpectedly. \
Couldn't build the canonicalization engine",
Expand Down
4 changes: 2 additions & 2 deletions client/merkle-mountain-range/src/offchain_mmr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ where
match self.client.header_metadata(hash) {
Ok(header) => Some(header),
_ => {
error!(
debug!(
target: LOG_TARGET,
"Block {} not found. Couldn't {} associated branch.", hash, action
);
Expand Down Expand Up @@ -168,7 +168,7 @@ where
canon_key
);
} else {
error!(
debug!(
target: LOG_TARGET,
"Couldn't canonicalize elem at pos {} using temp key {:?}", pos, temp_key
);
Expand Down