From 42b6368298a9eaa273b5071f265a4c61432e1a32 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Mon, 29 Mar 2021 12:06:37 +1100 Subject: [PATCH] Use full-qualified path for tracing macros Saves an import line and makes it clear that we are using tracing. --- swap/src/monero/wallet.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/swap/src/monero/wallet.rs b/swap/src/monero/wallet.rs index ddf9fdef..0f9490c0 100644 --- a/swap/src/monero/wallet.rs +++ b/swap/src/monero/wallet.rs @@ -11,7 +11,6 @@ use std::str::FromStr; use std::time::Duration; use tokio::sync::Mutex; use tokio::time::Interval; -use tracing::{debug, info}; use url::Url; #[derive(Debug)] @@ -34,9 +33,9 @@ impl Wallet { "Unable to create Monero wallet, please ensure that the monero-wallet-rpc is available", )?; - debug!("Created Monero wallet {}", name); + tracing::debug!("Created Monero wallet {}", name); } else { - debug!("Opened Monero wallet {}", name); + tracing::debug!("Opened Monero wallet {}", name); } Self::connect(client, name, env_config).await @@ -312,7 +311,7 @@ where if tx.confirmations > seen_confirmations { seen_confirmations = tx.confirmations; - info!(%txid, "Monero lock tx has {} out of {} confirmations", tx.confirmations, conf_target); + tracing::info!(%txid, "Monero lock tx has {} out of {} confirmations", tx.confirmations, conf_target); } }