From e4a886b15aa4bdb17179f0c3d53426fe8f5e5afb Mon Sep 17 00:00:00 2001 From: roman-kiselenko Date: Fri, 5 Jul 2024 15:39:22 +0200 Subject: [PATCH] Reduce useless log message about default CNI network Signed-off-by: roman-kiselenko --- pkg/ocicni/ocicni.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/ocicni/ocicni.go b/pkg/ocicni/ocicni.go index 4410d21..13595b8 100644 --- a/pkg/ocicni/ocicni.go +++ b/pkg/ocicni/ocicni.go @@ -379,7 +379,9 @@ func (plugin *cniNetworkPlugin) syncNetworkConfig(ctx context.Context) error { // Update defaultNetName if it is changeable if plugin.defaultNetName.changeable { plugin.defaultNetName.name = defaultNetName - logrus.Infof("Updated default CNI network name to %s", defaultNetName) + if defaultNetName != "" { + logrus.Infof("Updated default CNI network name to %s", defaultNetName) + } } else { logrus.Debugf("Default CNI network name %s is unchangeable", plugin.defaultNetName.name) }