Ref: Passt Debug-Logging in network_utils an, loggt nun nur noch erfolgreiche Outputs.
This commit is contained in:
@@ -128,8 +128,6 @@ pub fn get_ip_from_mac(mac: &str, network: &str) -> Option<String> {
|
||||
.args(["-sn", "-n", "--system-dns", "-PR", network])
|
||||
.output();
|
||||
|
||||
log("network_utils", &*format!("{:?}", output), LogLevel::Debug);
|
||||
|
||||
match output {
|
||||
Ok(out) => {
|
||||
if !out.status.success() {
|
||||
@@ -137,6 +135,7 @@ pub fn get_ip_from_mac(mac: &str, network: &str) -> Option<String> {
|
||||
}
|
||||
|
||||
let stdout = String::from_utf8_lossy(&out.stdout);
|
||||
log("network_utils", &*stdout, LogLevel::Debug);
|
||||
|
||||
// MAC normalisieren: nur Hex-Zeichen, klein, ohne Trennzeichen
|
||||
let normalize_mac = |m: &str| -> String {
|
||||
|
||||
Reference in New Issue
Block a user