runtime: clh: addNet() logging clean-up

Avoid logging the same endpoint fields twice from addNet().

Signed-off-by: Dan Mihai <dmihai@microsoft.com>
This commit is contained in:
Dan Mihai 2024-11-20 00:08:53 +00:00
parent 322073bea1
commit 78cbf33f1d

View File

@ -1627,7 +1627,7 @@ func (clh *cloudHypervisor) getDiskRateLimiterConfig() *chclient.RateLimiterConf
}
func (clh *cloudHypervisor) addNet(e Endpoint) error {
clh.Logger().WithField("endpoint-type", e).Debugf("Adding Endpoint of type %v", e)
clh.Logger().WithField("endpoint", e).Debugf("Adding Endpoint of type %v", e.Type())
mac := e.HardwareAddr()
netPair := e.NetworkPair()