Skip to content

Conversation

@dzmitry-lahoda
Copy link
Contributor

xcmp may fail because of dozens of reasons. it is very hard to debug and hard to setup.
so solution is to be very specific about failure reason.

Copy link
Member

@xlc xlc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am fine with this. Later can be updated once paritytech/substrate#10242 is available

@codecov-commenter
Copy link

Codecov Report

Merging #659 (351ba2a) into master (03fe554) will decrease coverage by 0.27%.
The diff coverage is 16.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #659      +/-   ##
==========================================
- Coverage   75.93%   75.65%   -0.28%     
==========================================
  Files          78       78              
  Lines        6549     6577      +28     
==========================================
+ Hits         4973     4976       +3     
- Misses       1576     1601      +25     
Impacted Files Coverage Δ
xtokens/src/lib.rs 59.76% <13.79%> (-9.75%) ⬇️
xtokens/src/tests.rs 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 03fe554...351ba2a. Read the comment docs.

@dzmitry-lahoda
Copy link
Contributor Author

replaced with logger. added comment to use paritytech/substrate#10242 as soon as ready.

.ensure_complete()
.map_err(|_| Error::<T>::XcmExecutionFailed)?;
.map_err(|error| {
log::trace!("Failed execute transfer message with {:?}", error);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
log::trace!("Failed execute transfer message with {:?}", error);
log::error!(target: "xtokens", "Failed execute transfer message with {:?}", error);

@xlc xlc enabled auto-merge (squash) November 24, 2021 23:20
@xlc xlc merged commit 5670bfa into open-web3-stack:master Nov 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants