Use 'Infof' instead of 'Errorf' for a debug log

This commit is contained in:
FengyunPan 2017-08-18 08:08:55 +08:00
parent 4d7e41d895
commit 4738a88d01

View File

@ -233,8 +233,10 @@ func (r *rangeAllocator) updateCIDRAllocation(data nodeAndCIDR) error {
continue
}
if node.Spec.PodCIDR != "" {
glog.Errorf("Node %v already has allocated CIDR %v. Releasing assigned one if different.", node.Name, node.Spec.PodCIDR)
glog.V(4).Infof("Node %v already has allocated CIDR %v. Releasing assigned one if different.", node.Name, node.Spec.PodCIDR)
if node.Spec.PodCIDR != data.cidr.String() {
glog.Errorf("Node %q PodCIDR seems to have changed (original=%v, current=%v), releasing original and occupying new CIDR",
node.Name, node.Spec.PodCIDR, data.cidr.String())
if err := r.cidrs.Release(data.cidr); err != nil {
glog.Errorf("Error when releasing CIDR %v", data.cidr.String())
}