Change rejected routes error message to verbose logging
Instead of printing an error message when a route is invalid,
print a log error with verbose loglevel.
Fixes: rhbz#1491717
Remove wrongly imported library
Fix import format
@@ -123,7 +123,7 @@ func (p *HostAdmitter) HandleEndpoints(eventType watch.EventType, endpoints *kap
// HandleRoute processes watch events on the Route resource.
func (p *HostAdmitter) HandleRoute(eventType watch.EventType, route *routeapi.Route) error {
if err := p.admitter(route); err != nil {
- glog.Errorf("Route %s not admitted: %s", routeNameKey(route), err.Error())
+ glog.V(4).Infof("Route %s not admitted: %s", routeNameKey(route), err.Error())
p.recorder.RecordRouteRejection(route, "RouteNotAdmitted", err.Error())
return err
}
