mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-22 23:05:42 +00:00
Use LOG_TARGET in consensus related crates (#12875)
* Use shared LOG_TARGET in consensus related crates * Rename target from "afg" to "grandpa"
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
|
||||
use super::{
|
||||
BlockStatus as BlockStatusT, BlockSyncRequester as BlockSyncRequesterT, CommunicationIn, Error,
|
||||
SignedMessage,
|
||||
SignedMessage, LOG_TARGET,
|
||||
};
|
||||
|
||||
use finality_grandpa::voter;
|
||||
@@ -296,7 +296,7 @@ where
|
||||
let next_log = *last_log + LOG_PENDING_INTERVAL;
|
||||
if Instant::now() >= next_log {
|
||||
debug!(
|
||||
target: "afg",
|
||||
target: LOG_TARGET,
|
||||
"Waiting to import block {} before {} {} messages can be imported. \
|
||||
Requesting network sync service to retrieve block from. \
|
||||
Possible fork?",
|
||||
@@ -346,7 +346,7 @@ where
|
||||
|
||||
fn warn_authority_wrong_target<H: ::std::fmt::Display>(hash: H, id: AuthorityId) {
|
||||
warn!(
|
||||
target: "afg",
|
||||
target: LOG_TARGET,
|
||||
"Authority {:?} signed GRANDPA message with \
|
||||
wrong block number for hash {}",
|
||||
id,
|
||||
|
||||
Reference in New Issue
Block a user