Logs for large messages + metrics on size. (#5143)

* Logs for large messages + metrics on size.

* Fix typo
This commit is contained in:
Robert Klotzner
2022-03-17 20:57:35 +01:00
committed by GitHub
parent dd6fdf0f14
commit 569599853d
4 changed files with 67 additions and 18 deletions
@@ -83,6 +83,13 @@ pub async fn fetch(
.with_relay_parent(relay_parent)
.with_stage(Stage::StatementDistribution);
gum::debug!(
target: LOG_TARGET,
?candidate_hash,
?relay_parent,
"Fetch for large statement started",
);
// Peers we already tried (and failed).
let mut tried_peers = Vec::new();
// Peers left for trying out.