From 6fde727c9347eb15ce3ae06c38ea3687ebc27eb1 Mon Sep 17 00:00:00 2001 From: Robert Klotzner Date: Thu, 4 Nov 2021 12:34:17 +0100 Subject: [PATCH] Fix misleading logs in collator protocol. (#4201) * Fix misleading logs in collator protocol. * Make logs debug again. Co-authored-by: Andronik Ordian --- .../network/collator-protocol/src/validator_side/mod.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/polkadot/node/network/collator-protocol/src/validator_side/mod.rs b/polkadot/node/network/collator-protocol/src/validator_side/mod.rs index 0b050d3c5e..f7672d932d 100644 --- a/polkadot/node/network/collator-protocol/src/validator_side/mod.rs +++ b/polkadot/node/network/collator-protocol/src/validator_side/mod.rs @@ -1213,7 +1213,8 @@ where tracing::debug!( target: LOG_TARGET, ?relay_parent, - "Fetch for collation took too long, starting parallel download for next collator as well." + ?collator_id, + "Timeout hit - already seconded?" ); dequeue_next_collation_and_fetch(&mut ctx, &mut state, relay_parent, collator_id).await; } @@ -1272,6 +1273,12 @@ async fn dequeue_next_collation_and_fetch( .get_mut(&relay_parent) .and_then(|c| c.get_next_collation_to_fetch(Some(previous_fetch))) { + tracing::debug!( + target: LOG_TARGET, + ?relay_parent, + ?id, + "Successfully dequeued next advertisement - fetching ..." + ); fetch_collation(ctx, state, next, id).await; } }