downgrade errors returned by watchHandler in reflector.go to warnnings

pull/6/head
Chao Xu 2015-07-27 20:47:16 -07:00
parent 5bd82ffe6d
commit 3b11705a99
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
}