Skip to content
Snippets Groups Projects
Commit a26fc521 authored by Daniel Nelson's avatar Daniel Nelson Committed by GitHub
Browse files

Fix panic in logparser if file cannot be opened (#3055)

parent 83f575fc
No related branches found
No related tags found
No related merge requests found
......@@ -182,7 +182,10 @@ func (l *LogParserPlugin) tailNewfiles(fromBeginning bool) error {
Location: &seek,
MustExist: true,
})
l.acc.AddError(err)
if err != nil {
l.acc.AddError(err)
continue
}
// create a goroutine for each "tailer"
l.wg.Add(1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment