Remove VPN external IP logging
All checks were successful
Build and Release / build-and-release (push) Successful in 1m19s

Clean up debug logging for production.

Version: v0.1.238
This commit is contained in:
2025-12-01 15:16:34 +01:00
parent 47ab1e387d
commit bdfff942f7
5 changed files with 14 additions and 23 deletions

View File

@@ -160,22 +160,15 @@ impl SystemdCollector {
}
if service_name == "openvpn-vpn-connection" && status_info.active_state == "active" {
tracing::info!("Checking VPN external IP for service: {}", service_name);
match self.get_vpn_external_ip() {
Some(external_ip) => {
tracing::info!("Got VPN external IP: {}", external_ip);
let metrics = Vec::new();
if let Some(external_ip) = self.get_vpn_external_ip() {
let metrics = Vec::new();
sub_services.push(SubServiceData {
name: format!("ip: {}", external_ip),
service_status: Status::Info,
metrics,
service_type: "vpn_route".to_string(),
});
}
None => {
tracing::warn!("Failed to get VPN external IP");
}
sub_services.push(SubServiceData {
name: format!("ip: {}", external_ip),
service_status: Status::Info,
metrics,
service_type: "vpn_route".to_string(),
});
}
}
@@ -883,8 +876,6 @@ impl SystemdCollector {
}
}
let stderr = String::from_utf8_lossy(&output.stderr);
tracing::warn!("VPN external IP query failed. Exit code: {:?}, stderr: {}", output.status.code(), stderr);
None
}
}