Merge pull request #11983 from caesarxuchao/11854

downgrade errors returned by watchHandler in reflector.go to warnnings
pull/6/head
Mike Danese 2015-07-30 08:20:05 -07:00
commit aca1eb6184
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ func (r *Reflector) listAndWatch(stopCh <-chan struct{}) {
}
if err := r.watchHandler(w, &resourceVersion, resyncCh, stopCh); err != nil {
if err != errorResyncRequested && err != errorStopRequested {
util.HandleError(fmt.Errorf("%s: watch of %v ended with: %v", r.name, r.expectedType, err))
glog.Warningf("%s: watch of %v ended with: %v", r.name, r.expectedType, err)
}
return
}