Log XCMP Queue Errors (#1147)

* test invalid xcmp data

* proper messaging

* cargo fmt

* Use `error` instead of `info`

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

Co-authored-by: Keith Yeung <kungfukeith11@gmail.com>
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
Doordashcon
2022-04-12 21:39:17 +01:00
committed by GitHub
parent ee7d4e4e2a
commit e1963ef070
2 changed files with 17 additions and 1 deletions
+5 -1
View File
@@ -655,7 +655,11 @@ impl<T: Config> Pallet<T> {
remaining_fragments = last_remaining_fragments;
break
},
Err(_) => {
Err(error) => {
log::error!(
"Failed to process XCMP-XCM message, caused by {:?}",
error
);
// Message looks invalid; don't attempt to retry
},
}