Change nftables logging from debug to info
All checks were successful
Build and Release / build-and-release (push) Successful in 1m21s
All checks were successful
Build and Release / build-and-release (push) Successful in 1m21s
- Add info to tracing imports - Change debug!() calls to info!() for visibility in logs - Update version to v0.1.252
This commit is contained in:
@@ -4,7 +4,7 @@ use cm_dashboard_shared::{AgentData, ServiceData, SubServiceData, SubServiceMetr
|
||||
use std::process::Command;
|
||||
use std::sync::RwLock;
|
||||
use std::time::Instant;
|
||||
use tracing::debug;
|
||||
use tracing::{debug, info};
|
||||
|
||||
use super::{Collector, CollectorError};
|
||||
use crate::config::SystemdConfig;
|
||||
@@ -921,7 +921,7 @@ impl SystemdCollector {
|
||||
let output = match output {
|
||||
Ok(out) if out.status.success() => out,
|
||||
_ => {
|
||||
debug!("Failed to run nft list ruleset");
|
||||
info!("Failed to run nft list ruleset");
|
||||
return (String::new(), String::new());
|
||||
}
|
||||
};
|
||||
@@ -929,7 +929,7 @@ impl SystemdCollector {
|
||||
let output_str = match String::from_utf8(output.stdout) {
|
||||
Ok(s) => s,
|
||||
Err(_) => {
|
||||
debug!("Failed to parse nft output as UTF-8");
|
||||
info!("Failed to parse nft output as UTF-8");
|
||||
return (String::new(), String::new());
|
||||
}
|
||||
};
|
||||
@@ -991,7 +991,7 @@ impl SystemdCollector {
|
||||
let tcp_str = tcp_vec.iter().map(|p| p.to_string()).collect::<Vec<_>>().join(", ");
|
||||
let udp_str = udp_vec.iter().map(|p| p.to_string()).collect::<Vec<_>>().join(", ");
|
||||
|
||||
debug!("nftables WAN ports - TCP: '{}', UDP: '{}'", tcp_str, udp_str);
|
||||
info!("nftables WAN ports - TCP: '{}', UDP: '{}'", tcp_str, udp_str);
|
||||
|
||||
(tcp_str, udp_str)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user