fix(backend): parse rtorrent version string in health check logs
This commit is contained in:
@@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user