Skip to content

Commit

Permalink
Fix panic in logparser if file cannot be opened (influxdata#3055)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnelson authored Jul 26, 2017
1 parent 83f575f commit a26fc52
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/inputs/logparser/logparser.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a26fc52

Please sign in to comment.