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
@@ -39,6 +39,7 @@ use crate::{
};
use inherents::{InherentIdentifier, InherentData, MakeFatalError, ProvideInherent};
const LOG_TARGET: &str = "runtime::inclusion-inherent";
// In the future, we should benchmark these consts; these are all untested assumptions for now.
const BACKED_CANDIDATE_WEIGHT: Weight = 100_000;
const INCLUSION_INHERENT_CLAIMED_WEIGHT: Weight = 1_000_000_000;
@@ -228,7 +229,7 @@ impl<T: Config> ProvideInherent for Module<T> {
Ok(_) => (signed_bitfields, backed_candidates),
Err(err) => {
log::warn!(
target: "runtime_inclusion_inherent",
target: LOG_TARGET,
"dropping signed_bitfields and backed_candidates because they produced \
an invalid inclusion inherent: {:?}",
err,
+3 -1
View File
@@ -23,6 +23,8 @@ use sp_std::collections::{btree_map::BTreeMap, vec_deque::VecDeque};
use frame_support::{decl_module, decl_storage, StorageMap, StorageValue, weights::Weight, traits::Get};
use primitives::v1::{Id as ParaId, UpwardMessage};
const LOG_TARGET: &str = "runtime::ump-sink";
/// All upward messages coming from parachains will be funneled into an implementation of this trait.
///
/// The message is opaque from the perspective of UMP. The message size can range from 0 to
@@ -76,7 +78,7 @@ impl<Config: xcm_executor::Config> UmpSink for XcmSink<Config> {
}
} else {
log::error!(
target: "runtime::ump-sink",
target: LOG_TARGET,
"Failed to decode versioned XCM from upward message.",
);
}