Remove log message for restart on error

Removed log message for disabled restart on error.
This commit is contained in:
Arjun Raman
2025-12-18 12:29:26 -08:00
committed by GitHub
parent f1bdf8d30e
commit c530d1f701

View File

@@ -120,7 +120,6 @@ func (k *kernelLogWatcher) watchLoop() {
// Only attempt to restart if configured to do so
if !k.restartOnError() {
klog.Infof("Restart on error not enabled, stopping watcher")
return
}
@@ -131,7 +130,7 @@ func (k *kernelLogWatcher) watchLoop() {
klog.Errorf("Failed to close kmsg parser: %v", err)
}
// Try to restart with backoff
// Try to restart
var restarted bool
kmsgs, restarted = k.retryCreateParser()
if !restarted {