Skip to content

Commit

Permalink
log nit
Browse files Browse the repository at this point in the history
  • Loading branch information
bkontur committed Apr 20, 2024
1 parent dfe0ccf commit cf8f345
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion polkadot/xcm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,10 @@ impl<C> VersionedXcm<C> {
self.using_encoded(|mut enc| {
Self::decode_all_with_depth_limit(MAX_XCM_DECODE_DEPTH, &mut enc).map(|_| ())
})
.map_err(|_| ())
.map_err(|e| {
log::error!(target: "xcm::validate_xcm_nesting", "Decode error: {e:?} for xcm: {self:?}!");
()
})
}
}

Expand Down

0 comments on commit cf8f345

Please sign in to comment.