Skip to content

Commit

Permalink
Reduce useless log message about default CNI network
Browse files Browse the repository at this point in the history
Signed-off-by: roman-kiselenko <[email protected]>
  • Loading branch information
roman-kiselenko committed Jul 5, 2024
1 parent 5f3dd16 commit e4a886b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/ocicni/ocicni.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit e4a886b

Please sign in to comment.