mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 21:27:57 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user