From eb7abc0cf948c65ae0ef6d4868e329c9987e914a Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Thu, 13 Feb 2020 13:03:19 +0100 Subject: [PATCH] don't print error when cached network load fails Use a debug message instead of an error one to report when loading a cached network config fails. Also log that we're falling back to loading from disk. Reported-in: github.com/containers/libpod/issues/5193 Signed-off-by: Valentin Rothberg --- pkg/ocicni/ocicni.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/ocicni/ocicni.go b/pkg/ocicni/ocicni.go index 499e2ad4..a8e2fbfa 100644 --- a/pkg/ocicni/ocicni.go +++ b/pkg/ocicni/ocicni.go @@ -503,8 +503,8 @@ func (plugin *cniNetworkPlugin) forEachNetwork(podNetwork *PodNetwork, fromCache var newRt *libcni.RuntimeConf cniNet, newRt, err = plugin.loadNetworkFromCache(network.Name, rt) if err != nil { - logrus.Errorf("error loading cached network config: %v", err) - // fall back to loading from existing plugins on disk + logrus.Debugf("error loading cached network config: %v", err) + logrus.Debugf("falling back to loading from existing plugins on disk") } else { // Use the updated RuntimeConf rt = newRt