chore: 添加网卡相关警告日志

This commit is contained in:
Mmx233
2022-09-18 15:26:36 +08:00
parent ad36c83c72
commit 0f13d667ab

View File

@@ -42,8 +42,16 @@ func GetInterfaceAddr() ([]srunModels.Eth, error) {
break
}
}
} else {
log.Debugf("网卡 %s 不匹配", eth.Name)
}
}
log.Debugln("有效匹配网卡:", result)
if len(result) == 0 {
log.Warnln("没有扫描到有效匹配网卡")
}
return result, nil
}