Fix panic in logparser if file cannot be opened (#3055)
This commit is contained in:
parent
83f575fcea
commit
a26fc52181
|
@ -182,7 +182,10 @@ func (l *LogParserPlugin) tailNewfiles(fromBeginning bool) error {
|
||||||
Location: &seek,
|
Location: &seek,
|
||||||
MustExist: true,
|
MustExist: true,
|
||||||
})
|
})
|
||||||
l.acc.AddError(err)
|
if err != nil {
|
||||||
|
l.acc.AddError(err)
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
// create a goroutine for each "tailer"
|
// create a goroutine for each "tailer"
|
||||||
l.wg.Add(1)
|
l.wg.Add(1)
|
||||||
|
|
Loading…
Reference in New Issue