From 291472486446b26aa634275b2d00722c0a905637 Mon Sep 17 00:00:00 2001 From: Ayevbeosa Iyamu Date: Thu, 26 Dec 2024 08:45:31 +0100 Subject: [PATCH] log error --- polkadot/xcm/xcm-builder/src/weight.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polkadot/xcm/xcm-builder/src/weight.rs b/polkadot/xcm/xcm-builder/src/weight.rs index d9112fe03d33..e8deb2a6ed37 100644 --- a/polkadot/xcm/xcm-builder/src/weight.rs +++ b/polkadot/xcm/xcm-builder/src/weight.rs @@ -234,7 +234,7 @@ impl< tracing::trace!(target: "xcm::weight", "UsingComponents::buy_weight weight: {:?}, payment: {:?}, context: {:?}", weight, payment, context); let amount = WeightToFee::weight_to_fee(&weight); let u128_amount: u128 = amount.try_into().map_err(|error| { - tracing::error!(target: "xcm::weight", "Amount could not be converted"); + tracing::error!(target: "xcm::weight", ?error, "Amount could not be converted"); XcmError::Overflow })?; let required = Asset { id: AssetId(AssetIdValue::get()), fun: Fungible(u128_amount) };