diff --git a/backend/src/main.rs b/backend/src/main.rs index e64e3bd..6d60433 100644 --- a/backend/src/main.rs +++ b/backend/src/main.rs @@ -104,7 +104,10 @@ async fn main() { let client = xmlrpc::RtorrentClient::new(&args.socket); // We use a lightweight call to verify connectivity match client.call("system.client_version", &[]).await { - Ok(v) => tracing::info!("Connected to rTorrent successfully. Version: {}", v), + Ok(xml) => { + let version = xmlrpc::parse_string_response(&xml).unwrap_or(xml); + tracing::info!("Connected to rTorrent successfully. Version: {}", version); + } Err(e) => tracing::error!("Socket exists but failed to connect to rTorrent: {}", e), } }