grandpa: change some logging from trace to debug (#6872)

* grandpa: change some logging from trace to debug

* grandpa: cleanup unused import
This commit is contained in:
André Silva
2020-08-11 16:05:59 +01:00
committed by GitHub
parent c347300e3e
commit 7fa96261ba
2 changed files with 4 additions and 4 deletions
@@ -922,7 +922,7 @@ impl<Block: BlockT> Inner<Block> {
PendingCatchUp::Processing { .. } => { PendingCatchUp::Processing { .. } => {
self.pending_catch_up = PendingCatchUp::None; self.pending_catch_up = PendingCatchUp::None;
}, },
state => trace!(target: "afg", state => debug!(target: "afg",
"Noted processed catch up message when state was: {:?}", "Noted processed catch up message when state was: {:?}",
state, state,
), ),
@@ -1043,7 +1043,7 @@ impl<Block: BlockT> Inner<Block> {
let (catch_up_allowed, catch_up_report) = self.note_catch_up_request(who, &request); let (catch_up_allowed, catch_up_report) = self.note_catch_up_request(who, &request);
if catch_up_allowed { if catch_up_allowed {
trace!(target: "afg", "Sending catch-up request for round {} to {}", debug!(target: "afg", "Sending catch-up request for round {} to {}",
round, round,
who, who,
); );
@@ -18,7 +18,7 @@
use std::{sync::Arc, collections::HashMap}; use std::{sync::Arc, collections::HashMap};
use log::{debug, trace}; use log::debug;
use parity_scale_codec::Encode; use parity_scale_codec::Encode;
use parking_lot::RwLockWriteGuard; use parking_lot::RwLockWriteGuard;
@@ -527,7 +527,7 @@ impl<BE, Block: BlockT, Client, SC> BlockImport<Block>
}, },
None => { None => {
if needs_justification { if needs_justification {
trace!( debug!(
target: "afg", target: "afg",
"Imported unjustified block #{} that enacts authority set change, waiting for finality for enactment.", "Imported unjustified block #{} that enacts authority set change, waiting for finality for enactment.",
number, number,