prefix parachain log targets with parachain:: (#2600)

* prefix parachain log targets with parachain::

* even more consistent
This commit is contained in:
Andronik Ordian
2021-03-10 17:07:56 +01:00
committed by GitHub
parent 956be35dd4
commit baa691deb1
26 changed files with 29 additions and 26 deletions
@@ -45,7 +45,7 @@ use polkadot_node_network_protocol::{
};
const LOG_TARGET: &str = "approval_distribution";
const LOG_TARGET: &str = "parachain::approval-distribution";
const COST_UNEXPECTED_MESSAGE: Rep = Rep::CostMinor("Peer sent an out-of-view assignment or approval");
const COST_DUPLICATE_MESSAGE: Rep = Rep::CostMinorRepeated("Peer sent identical messages");
@@ -46,7 +46,7 @@ pub use metrics::Metrics;
#[cfg(test)]
mod tests;
const LOG_TARGET: &'static str = "availability_distribution";
const LOG_TARGET: &'static str = "parachain::availability-distribution";
/// The availability distribution subsystem.
pub struct AvailabilityDistributionSubsystem {
@@ -56,7 +56,7 @@ mod error;
#[cfg(test)]
mod tests;
const LOG_TARGET: &str = "availability_recovery";
const LOG_TARGET: &str = "parachain::availability-recovery";
const COST_MERKLE_PROOF_INVALID: Rep = Rep::CostMinor("Merkle proof was invalid");
const COST_UNEXPECTED_CHUNK: Rep = Rep::CostMinor("Peer has sent an unexpected chunk");
@@ -136,7 +136,7 @@ impl PerRelayParentData {
}
}
const LOG_TARGET: &str = "bitfield_distribution";
const LOG_TARGET: &str = "parachain::bitfield-distribution";
/// The bitfield distribution subsystem.
pub struct BitfieldDistribution {
+1 -1
View File
@@ -77,7 +77,7 @@ const MALFORMED_VIEW_COST: Rep = Rep::CostMajor("Malformed view");
const EMPTY_VIEW_COST: Rep = Rep::CostMajor("Peer sent us an empty view");
// network bridge log target
const LOG_TARGET: &'static str = "network_bridge";
const LOG_TARGET: &'static str = "parachain::network-bridge";
/// Messages from and to the network.
///
@@ -30,7 +30,7 @@ use polkadot_node_network_protocol::PeerId;
use polkadot_primitives::v1::{AuthorityDiscoveryId, Block, Hash};
use polkadot_node_network_protocol::peer_set::{PeerSet, PerPeerSet};
const LOG_TARGET: &str = "validator_discovery";
const LOG_TARGET: &str = "parachain::validator-discovery";
/// An abstraction over networking for the purposes of validator discovery service.
#[async_trait]
@@ -43,7 +43,7 @@ use polkadot_node_subsystem_util::{
mod collator_side;
mod validator_side;
const LOG_TARGET: &'static str = "collator_protocol";
const LOG_TARGET: &'static str = "parachain::collator-protocol";
const REQUEST_TIMEOUT: Duration = Duration::from_secs(1);
#[derive(Debug, Error)]
@@ -36,7 +36,7 @@ use polkadot_primitives::v1::{
};
use polkadot_node_network_protocol::peer_set::PeerSet;
const LOG_TARGET: &str = "gossip_support";
const LOG_TARGET: &str = "parachain::gossip-support";
/// The Gossip Support subsystem.
pub struct GossipSupport {}
@@ -64,7 +64,7 @@ const BENEFIT_FRESH_POV: Rep = Rep::BenefitMinorFirst("Peer supplied us with an
const BENEFIT_LATE_POV: Rep = Rep::BenefitMinor("Peer supplied us with an awaited PoV, \
but was not the first to do so");
const LOG_TARGET: &str = "pov_distribution";
const LOG_TARGET: &str = "parachain::pov-distribution";
/// The PoV Distribution Subsystem.
pub struct PoVDistribution {
@@ -63,7 +63,7 @@ const BENEFIT_VALID_STATEMENT_FIRST: Rep = Rep::BenefitMajorFirst(
/// Typically we will only keep 1, but when a validator equivocates we will need to track 2.
const VC_THRESHOLD: usize = 2;
const LOG_TARGET: &str = "statement_distribution";
const LOG_TARGET: &str = "parachain::statement-distribution";
/// The statement distribution subsystem.
pub struct StatementDistribution {