From 585e5cb06c54dab76afa368ba48c979515544d75 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Sat, 25 Nov 2023 13:52:14 +0200 Subject: [PATCH] adds log --- cumulus/parachains/runtimes/bridge-hubs/common/Cargo.toml | 4 +++- .../runtimes/bridge-hubs/common/src/message_queue.rs | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cumulus/parachains/runtimes/bridge-hubs/common/Cargo.toml b/cumulus/parachains/runtimes/bridge-hubs/common/Cargo.toml index cb45735bbdcd..868f35f4a366 100644 --- a/cumulus/parachains/runtimes/bridge-hubs/common/Cargo.toml +++ b/cumulus/parachains/runtimes/bridge-hubs/common/Cargo.toml @@ -16,6 +16,7 @@ cumulus-primitives-core = { path = "../../../../primitives/core", default-featur xcm = { package = "staging-xcm", path = "../../../../../polkadot/xcm", default-features = false} pallet-message-queue = { path = "../../../../../substrate/frame/message-queue", default-features = false} snowbridge-core = { path = "../../../../../../parachain/primitives/core", default-features = false } +log = { version = "0.4.20", default-features = false } [features] default = [ "std" ] @@ -28,7 +29,8 @@ std = [ "cumulus-primitives-core/std", "xcm/std", "pallet-message-queue/std", - "snowbridge-core/std" + "snowbridge-core/std", + "log/std" ] runtime-benchmarks = [ diff --git a/cumulus/parachains/runtimes/bridge-hubs/common/src/message_queue.rs b/cumulus/parachains/runtimes/bridge-hubs/common/src/message_queue.rs index 76d6a122ee64..fc46323e6e29 100644 --- a/cumulus/parachains/runtimes/bridge-hubs/common/src/message_queue.rs +++ b/cumulus/parachains/runtimes/bridge-hubs/common/src/message_queue.rs @@ -91,6 +91,7 @@ where id: &mut [u8; 32], ) -> Result { use AggregateMessageOrigin::*; + log::info!(target: "xcm", "💫 in process message origin is {:?}.", origin); match origin { Here | Parent | Sibling(_) => XcmpProcessor::process_message(message, origin, meter, id),