do not unnecessarily log

This commit is contained in:
Elvin Efendi 2019-02-06 17:39:38 -05:00
parent 17e788b8e1
commit e7383bdf3d

View file

@ -948,7 +948,7 @@ func (n *NGINXController) createServers(data []*ingress.Ingress,
// special "catch all" case, Ingress with a backend but no rule // special "catch all" case, Ingress with a backend but no rule
defLoc := servers[defServerName].Locations[0] defLoc := servers[defServerName].Locations[0]
if defLoc.IsDefBackend && len(ing.Spec.Rules) == 0 { if defLoc.IsDefBackend && len(ing.Spec.Rules) == 0 {
klog.Infof("Ingress %q defines a backend but no rule. Using it to configure the catch-all server %q", klog.V(2).Infof("Ingress %q defines a backend but no rule. Using it to configure the catch-all server %q",
ingKey, defServerName) ingKey, defServerName)
defLoc.IsDefBackend = false defLoc.IsDefBackend = false