mirror of
https://github.com/rancher/norman.git
synced 2025-09-16 07:09:44 +00:00
change loglevel for watcher err
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.
This commit is contained in:
committed by
Alena Prokharchyk
parent
5a9f64e84e
commit
2115b95249
@@ -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)
|
||||
|
Reference in New Issue
Block a user