From f0c5883b50e8a0df3effcb8004f6695393343d66 Mon Sep 17 00:00:00 2001 From: pokkst Date: Sat, 5 Aug 2023 13:04:28 -0500 Subject: [PATCH] Fix more descriptive log message --- swap/src/bin/asb.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/swap/src/bin/asb.rs b/swap/src/bin/asb.rs index d10a2a76..5a4a4333 100644 --- a/swap/src/bin/asb.rs +++ b/swap/src/bin/asb.rs @@ -117,8 +117,11 @@ async fn main() -> Result<()> { }; let tor_port = if _ac.is_some() { config.tor.socks5_port } else { 0u16 }; let proxy_string = if tor_port != 0u16 { format!("127.0.0.1:{}", tor_port) } else { "".to_string() }; - let info_message = if proxy_string.is_empty() { "Not using SOCKS5 proxy" } else { "Using SOCKS5 proxy at" }; - tracing::info!(%proxy_string, info_message); + if proxy_string.is_empty() { + tracing::info!(%proxy_string, "Not using SOCKS5 proxy"); + } else { + tracing::info!(%proxy_string, "Using SOCKS5 proxy at"); + } match cmd { Command::Start { resume_only } => {