mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-20 10:31:03 +00:00
introduce log-target constant to more frame pallets (#13116)
* introduce log-target constant to more frame pallets * cargo fmt * make LOG_TARGET in session public * Update frame/elections-phragmen/src/lib.rs Co-authored-by: Bastian Köcher <git@kchr.de> * Update frame/elections-phragmen/src/migrations/v3.rs Co-authored-by: Bastian Köcher <git@kchr.de> * Update frame/elections-phragmen/src/migrations/v3.rs Co-authored-by: Bastian Köcher <git@kchr.de> * Update frame/elections-phragmen/src/migrations/v3.rs Co-authored-by: Bastian Köcher <git@kchr.de> * move LOG_TARGET=runtime::session_historical to migrations module, where it's actually used Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
|
||||
//! Migrate the reference counting state.
|
||||
|
||||
use super::LOG_TARGET;
|
||||
use crate::{Config, Pallet};
|
||||
use codec::{Decode, Encode, FullCodec};
|
||||
use frame_support::{
|
||||
@@ -75,7 +76,7 @@ pub fn migrate_from_single_u8_to_triple_ref_count<V: V2ToV3, T: Config>() -> Wei
|
||||
Some(AccountInfo { nonce, consumers: rc as RefCount, providers: 1, sufficients: 0, data })
|
||||
});
|
||||
log::info!(
|
||||
target: "runtime::system",
|
||||
target: LOG_TARGET,
|
||||
"Applied migration from single u8 to triple reference counting to {:?} elements.",
|
||||
translated
|
||||
);
|
||||
@@ -94,7 +95,7 @@ pub fn migrate_from_single_to_triple_ref_count<V: V2ToV3, T: Config>() -> Weight
|
||||
},
|
||||
);
|
||||
log::info!(
|
||||
target: "runtime::system",
|
||||
target: LOG_TARGET,
|
||||
"Applied migration from single to triple reference counting to {:?} elements.",
|
||||
translated
|
||||
);
|
||||
@@ -112,7 +113,7 @@ pub fn migrate_from_dual_to_triple_ref_count<V: V2ToV3, T: Config>() -> Weight {
|
||||
},
|
||||
);
|
||||
log::info!(
|
||||
target: "runtime::system",
|
||||
target: LOG_TARGET,
|
||||
"Applied migration from dual to triple reference counting to {:?} elements.",
|
||||
translated
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user