Skip to content
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

Merged
merged 46 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
991c9da
pallet-xcm: added useful error logs (#2408)
Jul 9, 2024
84e540a
Merge branch 'master' into ayevbeosa-log-xcm-errors
ayevbeosa Jul 9, 2024
3cb6ad3
Merge branch 'master' into ayevbeosa-log-xcm-errors
ayevbeosa Jul 9, 2024
eae27b6
xcm-executor: added logs
Jul 11, 2024
e9ecfba
Merge branch 'master' into ayevbeosa-log-xcm-errors
ayevbeosa Jul 11, 2024
7a4eef7
Apply suggestions from code review
acatangiu Oct 2, 2024
6bbfffa
Apply suggestions from code review
acatangiu Oct 2, 2024
6aa4816
Merge branch 'master' into ayevbeosa-log-xcm-errors
Oct 3, 2024
6a3e140
added logs
Oct 3, 2024
03e0b88
Update polkadot/xcm/pallet-xcm/src/lib.rs
bkontur Oct 3, 2024
92e5cbd
Update polkadot/xcm/pallet-xcm/src/lib.rs
bkontur Oct 4, 2024
9104421
Update polkadot/xcm/pallet-xcm/src/lib.rs
bkontur Oct 4, 2024
5011a47
Update polkadot/xcm/pallet-xcm/src/lib.rs
ayevbeosa Oct 4, 2024
208f62d
Merge branch 'master' into ayevbeosa-log-xcm-errors
ayevbeosa Oct 4, 2024
601e110
Update polkadot/xcm/pallet-xcm/src/lib.rs
bkontur Oct 4, 2024
081c929
Update polkadot/xcm/pallet-xcm/src/lib.rs
bkontur Oct 4, 2024
cbc97b5
Update polkadot/xcm/xcm-executor/src/lib.rs
bkontur Oct 4, 2024
9d3ec46
Update polkadot/xcm/pallet-xcm/src/lib.rs
bkontur Oct 4, 2024
40ec293
Update polkadot/xcm/xcm-executor/src/lib.rs
bkontur Oct 4, 2024
76ecb82
Apply suggestions from code review
bkontur Oct 4, 2024
bf76568
Update polkadot/xcm/xcm-executor/src/lib.rs
bkontur Oct 4, 2024
f520ea3
convert `log::error` to `tracing::error`, extend logs with more info
Oct 5, 2024
687adc9
Merge branch 'master' into ayevbeosa-log-xcm-errors
ayevbeosa Oct 5, 2024
0e2ac5a
extend logs with more info
Oct 5, 2024
9b9f309
Update polkadot/xcm/xcm-executor/src/lib.rs
ayevbeosa Oct 7, 2024
58f374b
change tracing:error format
Oct 7, 2024
e8abe1f
Merge branch 'master' into ayevbeosa-log-xcm-errors
bkontur Oct 8, 2024
cfd1ae4
used `tracing` instead of `log`
Oct 8, 2024
100c576
Merge branch 'master' into ayevbeosa-log-xcm-errors
bkontur Oct 9, 2024
4f1cf76
fix compile errors
Oct 10, 2024
f0e12ca
replaced log with tracing
Oct 10, 2024
9af6495
prefer to use tracing instead of log
Oct 10, 2024
841dcb4
fix compile issues
Oct 11, 2024
25faf07
Merge branch 'master' into ayevbeosa-log-xcm-errors
ayevbeosa Oct 11, 2024
44f184b
fix compile errors
Oct 11, 2024
4f9d0dc
Merge branch 'master' into ayevbeosa-log-xcm-errors
ayevbeosa Oct 11, 2024
fc0bb42
use tracing instead log
Oct 12, 2024
003cde7
Merge branch 'master' into ayevbeosa-log-xcm-errors
acatangiu Oct 14, 2024
753c51f
fix toml formattiing issues
Oct 14, 2024
e4d5945
Merge branch 'ayevbeosa-log-xcm-errors' of https://github.com/ayevbeo…
Oct 14, 2024
47edc33
Merge branch 'master' into ayevbeosa-log-xcm-errors
ayevbeosa Oct 14, 2024
ef5bc73
Add prdoc
Oct 14, 2024
c467fee
Update prdoc/pr_4982.prdoc
bkontur Oct 14, 2024
8b96b7f
Update prdoc/pr_4982.prdoc
bkontur Oct 14, 2024
25b4a75
Merge branch 'master' into ayevbeosa-log-xcm-errors
bkontur Oct 15, 2024
89b01b9
Merge branch 'master' into ayevbeosa-log-xcm-errors
bkontur Oct 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions polkadot/xcm/pallet-xcm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ bounded-collections = { workspace = true }
codec = { features = ["derive"], workspace = true }
scale-info = { features = ["derive"], workspace = true }
serde = { optional = true, features = ["derive"], workspace = true, default-features = true }
log = { workspace = true }
tracing = { workspace = true }

frame-support = { workspace = true }
frame-system = { workspace = true }
Expand Down Expand Up @@ -44,13 +44,13 @@ std = [
"frame-benchmarking?/std",
"frame-support/std",
"frame-system/std",
"log/std",
"pallet-balances/std",
"scale-info/std",
"serde",
"sp-core/std",
"sp-io/std",
"sp-runtime/std",
"tracing/std",
"xcm-builder/std",
"xcm-executor/std",
"xcm-runtime-apis/std",
Expand Down
8 changes: 4 additions & 4 deletions polkadot/xcm/pallet-xcm/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,14 @@ benchmarks! {
&origin_location,
None,
).map_err(|error| {
log::error!("Fungible asset couldn't be deposited, error: {:?}", error);
tracing::error!("Fungible asset couldn't be deposited, error: {:?}", error);
BenchmarkError::Override(BenchmarkResult::from_weight(Weight::MAX))
})?;
},
NonFungible(instance) => {
<T::XcmExecutor as XcmAssetTransfers>::AssetTransactor::deposit_asset(&asset, &origin_location, None)
.map_err(|error| {
log::error!("Nonfungible asset couldn't be deposited, error: {:?}", error);
tracing::error!("Nonfungible asset couldn't be deposited, error: {:?}", error);
BenchmarkError::Override(BenchmarkResult::from_weight(Weight::MAX))
})?;
}
Expand Down Expand Up @@ -178,14 +178,14 @@ benchmarks! {
&origin_location,
None,
).map_err(|error| {
log::error!("Fungible asset couldn't be deposited, error: {:?}", error);
tracing::error!("Fungible asset couldn't be deposited, error: {:?}", error);
BenchmarkError::Override(BenchmarkResult::from_weight(Weight::MAX))
})?;
},
NonFungible(instance) => {
<T::XcmExecutor as XcmAssetTransfers>::AssetTransactor::deposit_asset(&asset, &origin_location, None)
.map_err(|error| {
log::error!("Nonfungible asset couldn't be deposited, error: {:?}", error);
tracing::error!("Nonfungible asset couldn't be deposited, error: {:?}", error);
BenchmarkError::Override(BenchmarkResult::from_weight(Weight::MAX))
})?;
}
Expand Down
Loading
Loading