Skip to content

Commit c530d1f

Browse files
authored
Remove log message for restart on error
Removed log message for disabled restart on error.
1 parent f1bdf8d commit c530d1f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/systemlogmonitor/logwatchers/kmsg/log_watcher_linux.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ func (k *kernelLogWatcher) watchLoop() {
120120

121121
// Only attempt to restart if configured to do so
122122
if !k.restartOnError() {
123-
klog.Infof("Restart on error not enabled, stopping watcher")
124123
return
125124
}
126125

@@ -131,7 +130,7 @@ func (k *kernelLogWatcher) watchLoop() {
131130
klog.Errorf("Failed to close kmsg parser: %v", err)
132131
}
133132

134-
// Try to restart with backoff
133+
// Try to restart
135134
var restarted bool
136135
kmsgs, restarted = k.retryCreateParser()
137136
if !restarted {

0 commit comments

Comments
 (0)