Skip to content

Commit

Permalink
Slightly improve logs when reporting a parablock (#1964)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaka authored Sep 20, 2024
1 parent 9c291ce commit da8ef32
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions light-base/src/sync_service/parachain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -643,14 +643,6 @@ impl<TPlat: PlatformRef> ParachainBackgroundTask<TPlat> {
continue;
}

log!(
&self.platform,
Debug,
&self.log_target,
"subscriptions-notify-new-parablock",
hash = HashDisplay(&parahash)
);

if is_new_best {
runtime_subscription.reported_best_parahead_hash =
Some(parahash);
Expand All @@ -671,6 +663,16 @@ impl<TPlat: PlatformRef> ParachainBackgroundTask<TPlat> {
.unwrap_or(finalized_parahead),
);

log!(
&self.platform,
Debug,
&self.log_target,
"subscriptions-notify-new-parablock",
hash = HashDisplay(&parahash),
parent_hash = HashDisplay(&parent_hash),
?is_new_best
);

// Elements in `all_subscriptions` are removed one by one and
// inserted back if the channel is still open.
for index in (0..runtime_subscription.all_subscriptions.len()).rev()
Expand Down

0 comments on commit da8ef32

Please sign in to comment.