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])
|
.args(["-sn", "-n", "--system-dns", "-PR", network])
|
||||||
.output();
|
.output();
|
||||||
|
|
||||||
log("network_utils", &*format!("{:?}", output), LogLevel::Debug);
|
|
||||||
|
|
||||||
match output {
|
match output {
|
||||||
Ok(out) => {
|
Ok(out) => {
|
||||||
if !out.status.success() {
|
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);
|
let stdout = String::from_utf8_lossy(&out.stdout);
|
||||||
|
log("network_utils", &*stdout, LogLevel::Debug);
|
||||||
|
|
||||||
// MAC normalisieren: nur Hex-Zeichen, klein, ohne Trennzeichen
|
// MAC normalisieren: nur Hex-Zeichen, klein, ohne Trennzeichen
|
||||||
let normalize_mac = |m: &str| -> String {
|
let normalize_mac = |m: &str| -> String {
|
||||||
|
|||||||
Reference in New Issue
Block a user