Skip to content

Commit

Permalink
Use log explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrylavrenov committed Nov 7, 2024
1 parent 47e0bcd commit 2ba0544
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Initialization of the bridge pot accounts on runtime upgrade.

use frame_support::{log::error, pallet_prelude::*};
use frame_support::{log, pallet_prelude::*};
#[cfg(feature = "try-runtime")]
use sp_std::vec::Vec;

Expand All @@ -23,7 +23,7 @@ pub fn on_runtime_upgrade<T: Config>() -> Weight {
if is_version_mismatch || is_forced {
match Pallet::<T>::initialize() {
Ok(w) => weight.saturating_accrue(w),
Err(err) => error!("error during bridges initialization: {err:?}"),
Err(err) => log::error!("error during bridges initialization: {err:?}"),
}

<LastInitializerVersion<T>>::put(CURRENT_BRIDGES_INITIALIZER_VERSION);
Expand Down

0 comments on commit 2ba0544

Please sign in to comment.