Skip to content

Commit 2ddd572

Browse files
authored
Update configmap.go
improve: clarify watch channel reconnection log message Changes the log message for watch channel closure from an error to a warning level and adds context about the automatic reconnection behavior. This better reflects the expected behavior of the watch loop and provides clearer observability. Before: logrus.Error("Watch channel closed.") After: logrus.Warn("Watch channel closed. Reconnecting...")
1 parent c486a6f commit 2ddd572

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/mapper/configmap/configmap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func (ms *MapStore) startLoadConfigMap(stopCh <-chan struct{}) {
101101

102102
}
103103
}
104-
logrus.Error("Watch channel closed.")
104+
logrus.Warn("Watch channel closed. Reconnecting...")
105105
}
106106
}
107107
}()

0 commit comments

Comments
 (0)