From 83de0189d94c1d47d689cd798a35ded213fe1774 Mon Sep 17 00:00:00 2001 From: DragonSlayer_14 Date: Thu, 21 Aug 2025 14:01:56 +0200 Subject: [PATCH] Ref: Passt Debug-Logging in `network_utils` an, loggt nun nur noch erfolgreiche Outputs. --- src/network/utils.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/network/utils.rs b/src/network/utils.rs index d378dfd..d62f389 100644 --- a/src/network/utils.rs +++ b/src/network/utils.rs @@ -128,8 +128,6 @@ pub fn get_ip_from_mac(mac: &str, network: &str) -> Option { .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 { } 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 {