From c530d1f70193ef84325b2f15fe35c299e3e3659c Mon Sep 17 00:00:00 2001 From: Arjun Raman <65422301+arjraman@users.noreply.github.com> Date: Thu, 18 Dec 2025 12:29:26 -0800 Subject: [PATCH] Remove log message for restart on error Removed log message for disabled restart on error. --- pkg/systemlogmonitor/logwatchers/kmsg/log_watcher_linux.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/systemlogmonitor/logwatchers/kmsg/log_watcher_linux.go b/pkg/systemlogmonitor/logwatchers/kmsg/log_watcher_linux.go index fbce72cb..cc038c43 100644 --- a/pkg/systemlogmonitor/logwatchers/kmsg/log_watcher_linux.go +++ b/pkg/systemlogmonitor/logwatchers/kmsg/log_watcher_linux.go @@ -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 {