change the location of error log.
@@ -186,9 +186,9 @@ func (h *NetworkUtilsHandler) SetRandomMac(iface string) (net.HardwareAddr, erro
if changed {
mac, err = Handler.GetMacDetails(iface)
if err != nil {
+ log.Log.Reason(err).Errorf("updated MAC for interface: %s - %s", iface, mac)
return nil, err
}
- log.Log.Reason(err).Errorf("updated MAC for interface: %s - %s", iface, mac)
break
}
}
