From 78cbf33f1da64df2e13fbfcad35d60a1355d6962 Mon Sep 17 00:00:00 2001 From: Dan Mihai Date: Wed, 20 Nov 2024 00:08:53 +0000 Subject: [PATCH] runtime: clh: addNet() logging clean-up Avoid logging the same endpoint fields twice from addNet(). Signed-off-by: Dan Mihai --- src/runtime/virtcontainers/clh.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/virtcontainers/clh.go b/src/runtime/virtcontainers/clh.go index f02b0f6da..6a7ad110d 100644 --- a/src/runtime/virtcontainers/clh.go +++ b/src/runtime/virtcontainers/clh.go @@ -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()