diff --git a/pallets/parachain-staking/src/lib.rs b/pallets/parachain-staking/src/lib.rs index f32b6d4ec..522b81fce 100644 --- a/pallets/parachain-staking/src/lib.rs +++ b/pallets/parachain-staking/src/lib.rs @@ -77,6 +77,9 @@ pub use traits::*; pub use types::*; pub use RoundIndex; +#[cfg(not(feature = "on-chain-release-build"))] +const LOG_TARGET: &str = "parachain-staking"; + #[pallet] pub mod pallet { use crate::{ @@ -1711,7 +1714,10 @@ pub mod pallet { // choose the top TotalSelected qualified candidates, ordered by stake let collators = Self::compute_top_candidates(); if collators.is_empty() { - log::error!("FAILED TO SELECT >=1 COLLATOR => using collators from previous round"); + log::error!( + target: crate::LOG_TARGET, + "FAILED TO SELECT >=1 COLLATOR => using collators from previous round" + ); let last_round = now.saturating_sub(1u32); let mut total_per_candidate: BTreeMap> = BTreeMap::new(); // set this round AtStake to last round AtStake