From 7e5e34f239b7997be719159e6ccbba37ea41e17e Mon Sep 17 00:00:00 2001 From: pokkst Date: Sat, 5 Aug 2023 13:01:41 -0500 Subject: [PATCH] More descriptive log message --- swap/src/bin/asb.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/swap/src/bin/asb.rs b/swap/src/bin/asb.rs index d76d7a8b..d10a2a76 100644 --- a/swap/src/bin/asb.rs +++ b/swap/src/bin/asb.rs @@ -117,7 +117,8 @@ 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() }; - tracing::info!(%proxy_string, "SOCKS5"); + let info_message = if proxy_string.is_empty() { "Not using SOCKS5 proxy" } else { "Using SOCKS5 proxy at" }; + tracing::info!(%proxy_string, info_message); match cmd { Command::Start { resume_only } => {