Skip to content

Commit 648781a

Browse files
belimawrmergify[bot]
authored andcommitted
[libbeat] Input reload: do not log error if error is nil (#47422)
(cherry picked from commit 9c4239e)
1 parent a2dca2f commit 648781a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libbeat/cfgfile/reload.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,9 @@ func (rl *Reloader) Run(runnerFactory RunnerFactory) {
220220
if forceReload {
221221
rl.logger.Debugf("error '%v' can be retried. Will try again in %s", err, rl.config.Reload.Period.String())
222222
} else {
223-
rl.logger.Debugf("error '%v' cannot retried. Modify any input file to reload.", err)
223+
if err != nil {
224+
rl.logger.Debugf("error '%v' cannot retried. Modify any input file to reload.", err)
225+
}
224226
}
225227
}
226228

0 commit comments

Comments
 (0)