Fix misleading logs in collator protocol. (#4201)

* Fix misleading logs in collator protocol.

* Make logs debug again.

Co-authored-by: Andronik Ordian <write@reusable.software>
This commit is contained in:
Robert Klotzner
2021-11-04 12:34:17 +01:00
committed by GitHub
parent bcbd8d27c4
commit 6fde727c93
@@ -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;
}
}