Discard logging from tail library (#3128)

This commit is contained in:
Daniel Nelson 2017-08-16 12:06:07 -07:00 committed by GitHub
parent 3819607511
commit ca394fcfb2
2 changed files with 2 additions and 0 deletions

View File

@ -188,6 +188,7 @@ func (l *LogParserPlugin) tailNewfiles(fromBeginning bool) error {
Follow: true, Follow: true,
Location: &seek, Location: &seek,
MustExist: true, MustExist: true,
Logger: tail.DiscardingLogger,
}) })
if err != nil { if err != nil {
l.acc.AddError(err) l.acc.AddError(err)

View File

@ -97,6 +97,7 @@ func (t *Tail) Start(acc telegraf.Accumulator) error {
Location: seek, Location: seek,
MustExist: true, MustExist: true,
Pipe: t.Pipe, Pipe: t.Pipe,
Logger: tail.DiscardingLogger,
}) })
if err != nil { if err != nil {
acc.AddError(err) acc.AddError(err)