Skip to content

Commit

Permalink
change loglevel for watcher err
Browse files Browse the repository at this point in the history
changing error level to debug, the error is already handled, new watcher
gets started after the current one is closed. Closing is not done by
rancher, it's a k8s behavior.
  • Loading branch information
kinarashah authored and Alena Prokharchyk committed Nov 18, 2019
1 parent 5a9f64e commit 2115b95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion store/proxy/proxy_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ func (s *Store) realWatch(apiContext *types.APIContext, schema *types.Schema, op
for event := range watcher.ResultChan() {
if data, ok := event.Object.(*metav1.Status); ok {
// just logging it, keeping the same behavior as before
logrus.Errorf("watcher error %s", data.Message)
logrus.Debugf("watcher status for %s: %s", schema.ID, data.Message)
} else {
data := event.Object.(*unstructured.Unstructured)
s.fromInternal(apiContext, schema, data.Object)
Expand Down

0 comments on commit 2115b95

Please sign in to comment.