More descriptive log message

This commit is contained in:
pokkst 2023-08-05 13:01:41 -05:00
parent cfaf9ee257
commit 7e5e34f239
No known key found for this signature in database
GPG Key ID: 90C2ED85E67A50FF

View File

@ -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 } => {