Skip to content

Commit

Permalink
don't print error when cached network load fails
Browse files Browse the repository at this point in the history
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/podman/issues/5193
Signed-off-by: Valentin Rothberg <[email protected]>
  • Loading branch information
vrothberg committed Feb 13, 2020
1 parent e25b504 commit eb7abc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/ocicni/ocicni.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eb7abc0

Please sign in to comment.