-
Notifications
You must be signed in to change notification settings - Fork 660
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pallet-xcm: added useful error logs (#2408) #4982
base: master
Are you sure you want to change the base?
Conversation
@ayevbeosa this is good, but does not yet fix #2408 - this PR only covers |
Thanks @acatangiu, is it okay to do everything in this PR or I should break it in parts? |
I think you can do it in same PR since they're not that many changes |
Review required! Latest push from author must always be reviewed |
Co-authored-by: Francisco Aguirre <[email protected]>
@ayevbeosa do you still plan on getting this over the finish line? |
Sure! Asides resolving the merge conflict, is there anything else left? |
Nope, merge master and have CI passing and we'll merge it. |
@@ -1087,7 +1095,10 @@ impl<Config: config::Config> XcmExecutor<Config> { | |||
tracing::trace!(target: "xcm::executor::BuyExecution", asset_used_for_fees = ?self.asset_used_for_fees); | |||
// pay for `weight` using up to `fees` of the holding register. | |||
let max_fee = | |||
self.holding.try_take(fees.into()).map_err(|_| XcmError::NotHoldingFees)?; | |||
self.holding.try_take(fees.clone().into()).map_err(|e| { | |||
log::error!(target: "xcm::process_instruction::buy_execution", "Failed to take fees {fees:?} from holding with error: {e:?}"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ayevbeosa can you please:
- change all
log::error
totracing::error
format forxcm-executor
- check existing logs, e.g. this one can be extended with more info
tracing::error!(target: "xcm::reanchor", ?error, "Failed reanchoring with error");
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will get on it
Added error logs in pallet-xcm to help in debugging, fixes #2408
TODO
log::error
totracing::error
format forxcm-executor
tracing::error!(target: "xcm::reanchor", ?error, "Failed reanchoring with error");