mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 07:01:03 +00:00
prefix parachain log targets with parachain:: (#2600)
* prefix parachain log targets with parachain:: * even more consistent
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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.",
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user