Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pallets/relayer-set/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
codec = { workspace = true }
log = { workspace = true, default-features = true }
tracing = { workspace = true, default-features = true }
scale-info = { features = ["derive"], workspace = true }

polkadot-sdk-frame = { workspace = true, default-features = false, features = [
Expand All @@ -26,7 +26,7 @@ runtime-benchmarks = [
]
std = [
"codec/std",
"log/std",
"tracing/std",
"polkadot-sdk-frame/std",
"scale-info/std",
]
Expand Down
4 changes: 2 additions & 2 deletions pallets/relayer-set/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ impl<T: Config> Pallet<T> {

// Decrement who's provider reference count
if let Err(err) = frame_system::Pallet::<T>::dec_providers(who) {
log::warn!(
tracing::warn!(
target: LOG_TARGET,
"Failed to decrement provider reference count for relayer {who:?}, \
leaking reference: {err:?}"
Expand Down Expand Up @@ -185,7 +185,7 @@ impl<T: Config> Pallet<T> {
Some(relayer) =>
relayer.min_bridge_tx_block = frame_system::Pallet::<T>::block_number()
.saturating_add(T::BridgeTxFailCooldownBlocks::get()),
None => log::warn!(
None => tracing::warn!(
target: LOG_TARGET,
"Could not find signer {who:?} of failed bridge transaction in relayer set"
),
Expand Down
4 changes: 2 additions & 2 deletions pallets/validator-set/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ license = 'Apache-2.0'

[dependencies]
codec = { workspace = true, features = ["derive"] }
log = { workspace = true, default-features = true }
tracing = { workspace = true, default-features = true }
scale-info = { features = ["derive"], workspace = true }

polkadot-sdk-frame = { workspace = true, default-features = false, features = [
Expand All @@ -32,7 +32,7 @@ runtime-benchmarks = [
"sp-staking/runtime-benchmarks",
]
std = [
"log/std",
"tracing/std",
"pallets-common/std",
"sp-staking/std",
'codec/std',
Expand Down
4 changes: 2 additions & 2 deletions pallets/validator-set/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,13 +238,13 @@ impl<T: Config> Pallet<T> {
if let Err(err) =
pallet_session::Pallet::<T>::purge_keys(RawOrigin::Signed(who.clone()).into())
{
log::trace!(
tracing::trace!(
target: LOG_TARGET,
"Failed to purge session keys for validator {who:?}: {err:?}"
);
}
if let Err(err) = frame_system::Pallet::<T>::dec_providers(who) {
log::warn!(
tracing::warn!(
target: LOG_TARGET,
"Failed to decrement provider reference count for validator {who:?}, \
leaking reference: {err:?}"
Expand Down
4 changes: 2 additions & 2 deletions runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
codec = { workspace = true, features = ["derive"] }
log = { workspace = true }
tracing = { workspace = true }
scale-info = { features = ["derive"], workspace = true }
serde_json = { features = ["alloc"], workspace = true }
frame-executive = { workspace = true }
Expand Down Expand Up @@ -104,7 +104,7 @@ static_assertions = { workspace = true }
default = ["std"]
std = [
"codec/std",
"log/std",
"tracing/std",
"scale-info/std",
"serde_json/std",

Expand Down
10 changes: 5 additions & 5 deletions runtime/src/bridge_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ impl<BlobDispatcher: DispatchBlob, Weights: pallet_bridge_messages::WeightInfoEx
let payload = match message.data.payload {
Ok(payload) => payload,
Err(e) => {
log::error!(
tracing::error!(
target: LOG_TARGET_BRIDGE_DISPATCH,
"dispatch - payload error: {e:?} for lane_id: {:?} and message_nonce: {:?}",
message.key.lane_id,
Expand All @@ -167,7 +167,7 @@ impl<BlobDispatcher: DispatchBlob, Weights: pallet_bridge_messages::WeightInfoEx
};
let dispatch_level_result = match BlobDispatcher::dispatch_blob(payload) {
Ok(_) => {
log::debug!(
tracing::debug!(
target: LOG_TARGET_BRIDGE_DISPATCH,
"dispatch - `DispatchBlob::dispatch_blob` was ok for lane_id: {:?} and message_nonce: {:?}",
message.key.lane_id,
Expand All @@ -176,7 +176,7 @@ impl<BlobDispatcher: DispatchBlob, Weights: pallet_bridge_messages::WeightInfoEx
XcmBlobMessageDispatchResult::Dispatched
},
Err(e) => {
log::error!(
tracing::error!(
target: LOG_TARGET_BRIDGE_DISPATCH,
"dispatch - `DispatchBlob::dispatch_blob` failed with error: {e:?} for lane_id: {:?} and message_nonce: {:?}",
message.key.lane_id,
Expand Down Expand Up @@ -279,7 +279,7 @@ where
XCM_LANE, &blob,
)
.map_err(|e| {
log::error!(
tracing::error!(
target: LOG_TARGET_BRIDGE_DISPATCH,
"haul_blob result - error: {e:?} on lane: {XCM_LANE:?}",
);
Expand All @@ -288,7 +288,7 @@ where
let artifacts = pallet_bridge_messages::Pallet::<Runtime, MessagesInstance>::send_message(
send_message_args,
);
log::info!(
tracing::info!(
target: LOG_TARGET_BRIDGE_DISPATCH,
"haul_blob result - ok: {:?} on lane: {:?}. Enqueued messages: {}",
artifacts.nonce,
Expand Down
8 changes: 4 additions & 4 deletions runtime/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ impl ConvertOrigin<RuntimeOrigin> for KawabungaParachainAsRoot {
kind: OriginKind,
) -> Result<RuntimeOrigin, Location> {
let origin = origin.into();
log::trace!(
tracing::trace!(
target: "xcm::origin_conversion",
"KawabungaParachainAsRoot origin: {origin:?}, kind: {kind:?}",
);
Expand Down Expand Up @@ -148,7 +148,7 @@ impl<RuntimeCall: Decode, AllowedOrigin: Contains<Location>> ShouldExecute
max_weight: Weight,
_properties: &mut xcm_executor::traits::Properties,
) -> Result<(), ProcessMessageError> {
log::trace!(
tracing::trace!(
target: "xcm::barriers",
"AllowUnpaidTransactsFrom origin: {origin:?}, instructions: {instructions:?}, max_weight: {max_weight:?}, properties:
{_properties:?}",
Expand Down Expand Up @@ -247,7 +247,7 @@ impl DispatchBlob for ImmediateXcmDispatcher {
let message: Xcm<RuntimeCall> =
message.try_into().map_err(|_| DispatchBlobError::UnsupportedXcmVersion)?;

log::trace!(
tracing::trace!(
target: "runtime::xcm",
"Going to dispatch XCM message from {:?}: {:?}",
KawabungaLocation::get(),
Expand All @@ -270,7 +270,7 @@ impl DispatchBlob for ImmediateXcmDispatcher {
)
.ensure_complete()
.map_err(|e| {
log::trace!(
tracing::trace!(
target: "runtime::xcm",
"XCM message from {:?} was dispatched with an error: {:?}",
KawabungaLocation::get(),
Expand Down
4 changes: 2 additions & 2 deletions runtimes/bulletin-polkadot/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
codec = { workspace = true, features = ["derive"] }
log = { workspace = true }
tracing = { workspace = true }
scale-info = { features = ["derive"], workspace = true }
serde_json = { features = ["alloc"], workspace = true }
frame-executive = { workspace = true }
Expand Down Expand Up @@ -105,7 +105,7 @@ sp-tracing = { workspace = true }
default = ["std"]
std = [
"codec/std",
"log/std",
"tracing/std",
"scale-info/std",
"serde_json/std",

Expand Down
10 changes: 5 additions & 5 deletions runtimes/bulletin-polkadot/src/polkadot_bridge_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ impl<BlobDispatcher: DispatchBlob, Weights: pallet_bridge_messages::WeightInfoEx
let payload = match message.data.payload {
Ok(payload) => payload,
Err(e) => {
log::error!(
tracing::error!(
target: LOG_TARGET_BRIDGE_DISPATCH,
"dispatch - payload error: {e:?} for lane_id: {:?} and message_nonce: {:?}",
message.key.lane_id,
Expand All @@ -276,7 +276,7 @@ impl<BlobDispatcher: DispatchBlob, Weights: pallet_bridge_messages::WeightInfoEx
};
let dispatch_level_result = match BlobDispatcher::dispatch_blob(payload) {
Ok(_) => {
log::debug!(
tracing::debug!(
target: LOG_TARGET_BRIDGE_DISPATCH,
"dispatch - `DispatchBlob::dispatch_blob` was ok for lane_id: {:?} and message_nonce: {:?}",
message.key.lane_id,
Expand All @@ -285,7 +285,7 @@ impl<BlobDispatcher: DispatchBlob, Weights: pallet_bridge_messages::WeightInfoEx
XcmBlobMessageDispatchResult::Dispatched
},
Err(e) => {
log::error!(
tracing::error!(
target: LOG_TARGET_BRIDGE_DISPATCH,
"dispatch - `DispatchBlob::dispatch_blob` failed with error: {e:?} for lane_id: {:?} and message_nonce: {:?}",
message.key.lane_id,
Expand Down Expand Up @@ -401,7 +401,7 @@ where
XCM_LANE, &blob,
)
.map_err(|e| {
log::error!(
tracing::error!(
target: LOG_TARGET_BRIDGE_DISPATCH,
"haul_blob result - error: {e:?} on lane: {XCM_LANE:?}",
);
Expand All @@ -410,7 +410,7 @@ where
let artifacts = pallet_bridge_messages::Pallet::<Runtime, MessagesInstance>::send_message(
send_message_args,
);
log::info!(
tracing::info!(
target: LOG_TARGET_BRIDGE_DISPATCH,
"haul_blob result - ok: {:?} on lane: {:?}. Enqueued messages: {}",
artifacts.nonce,
Expand Down
4 changes: 2 additions & 2 deletions runtimes/bulletin-polkadot/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ impl<Execute: ExecuteXcm<Call>, Call, AsOrigin: Get<Location>> SendXcm
Ok((Xcm::<Call>::from(msg), Assets::new()))
},
_ => {
log::trace!(
tracing::trace!(
target: "xcm::execute::validate",
"ImmediateExecutingXcmRouter unsupported destination: {dest:?}",
);
Expand All @@ -186,7 +186,7 @@ impl<Execute: ExecuteXcm<Call>, Call, AsOrigin: Get<Location>> SendXcm
.ensure_complete()
.map(|_| message_hash)
.map_err(|e| {
log::trace!(
tracing::trace!(
target: "xcm::execute::deliver",
"XCM message from {:?} was dispatched with an error: {:?}",
AsOrigin::get(),
Expand Down
4 changes: 2 additions & 2 deletions runtimes/bulletin-polkadot/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ fn construct_and_apply_extrinsic(
let dispatch_info = call.get_dispatch_info();
let xt = construct_extrinsic(account, call)?;
let xt_len = xt.encode().len();
log::info!(
tracing::info!(
"Applying extrinsic: class={:?} pays_fee={:?} weight={:?} encoded_len={} bytes",
dispatch_info.class,
dispatch_info.pays_fee,
Expand Down Expand Up @@ -344,7 +344,7 @@ fn transaction_storage_runtime_sizes() {

// store data
for (index, size) in sizes.into_iter().enumerate() {
log::info!("Storing data with size: {size} and index: {index}");
tracing::info!("Storing data with size: {size} and index: {index}");
advance_block();
let res = construct_and_apply_extrinsic(
account.pair(),
Expand Down
Loading