Skip to content
Snippets Groups Projects
Commit 7416c8c5 authored by Adrian Catangiu's avatar Adrian Catangiu Committed by GitHub
Browse files

adjust BEEFY client logging (#11261)


Move gossip filter logging to level=trace because it's very spammy.
Move some debug-relevant logs from trace to debug.

Signed-off-by: default avataracatangiu <adrian@parity.io>
parent 97f51931
No related merge requests found
......@@ -220,7 +220,7 @@ where
let round = msg.commitment.block_number;
let allowed = known_votes.is_live(&round);
debug!(target: "beefy", "🥩 Message for round #{} allowed: {}", round, allowed);
trace!(target: "beefy", "🥩 Message for round #{} allowed: {}", round, allowed);
allowed
})
......
......@@ -171,7 +171,7 @@ where
let signatures = self.rounds.remove(round)?.votes;
self.rounds.retain(|&(_, number), _| number > round.1);
self.best_done = self.best_done.clone().max(Some(round.1.clone()));
trace!(target: "beefy", "🥩 Concluded round #{}", round.1);
debug!(target: "beefy", "🥩 Concluded round #{}", round.1);
Some(
self.validator_set
......
......@@ -263,7 +263,7 @@ where
}
fn handle_finality_notification(&mut self, notification: &FinalityNotification<B>) {
trace!(target: "beefy", "🥩 Finality notification: {:?}", notification);
debug!(target: "beefy", "🥩 Finality notification: {:?}", notification);
let number = *notification.header.number();
// On start-up ignore old finality notifications that we're not interested in.
......@@ -332,7 +332,7 @@ where
VersionedFinalityProof::V1(signed_commitment.clone()).encode(),
),
) {
trace!(target: "beefy", "🥩 Error {:?} on appending justification: {:?}", e, signed_commitment);
debug!(target: "beefy", "🥩 Error {:?} on appending justification: {:?}", e, signed_commitment);
}
self.signed_commitment_sender
.notify(|| Ok::<_, ()>(signed_commitment))
......@@ -352,7 +352,7 @@ where
///
/// Also handle this self vote by calling `self.handle_vote()` for it.
fn do_vote(&mut self, target_number: NumberFor<B>) {
trace!(target: "beefy", "🥩 Try voting on {}", target_number);
debug!(target: "beefy", "🥩 Try voting on {}", target_number);
// Most of the time we get here, `target` is actually `best_grandpa`,
// avoid asking `client` for header in that case.
......@@ -455,7 +455,7 @@ where
future::ready(false)
} else {
trace!(target: "beefy", "🥩 Finality notification: {:?}", notif);
trace!(target: "beefy", "🥩 Waiting for BEEFY pallet to become available...");
debug!(target: "beefy", "🥩 Waiting for BEEFY pallet to become available...");
future::ready(true)
}
})
......@@ -475,7 +475,7 @@ where
let mut votes = Box::pin(self.gossip_engine.lock().messages_for(topic::<B>()).filter_map(
|notification| async move {
debug!(target: "beefy", "🥩 Got vote message: {:?}", notification);
trace!(target: "beefy", "🥩 Got vote message: {:?}", notification);
VoteMessage::<NumberFor<B>, AuthorityId, Signature>::decode(
&mut &notification.message[..],
......@@ -577,7 +577,7 @@ where
// we vote on it
let target = match best_beefy {
None => {
trace!(
debug!(
target: "beefy",
"🥩 vote target - mandatory block: #{:?}",
session_start,
......@@ -585,7 +585,7 @@ where
session_start
},
Some(bbb) if bbb < session_start => {
trace!(
debug!(
target: "beefy",
"🥩 vote target - mandatory block: #{:?}",
session_start,
......@@ -597,7 +597,7 @@ where
let diff = diff.saturated_into::<u32>() / 2;
let target = bbb + min_delta.max(diff.next_power_of_two()).into();
trace!(
debug!(
target: "beefy",
"🥩 vote target - diff: {:?}, next_power_of_two: {:?}, target block: #{:?}",
diff,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment