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

Discard logging from tail library (#3128)

parent 38196075
No related branches found
No related tags found
No related merge requests found
...@@ -188,6 +188,7 @@ func (l *LogParserPlugin) tailNewfiles(fromBeginning bool) error { ...@@ -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)
......
...@@ -97,6 +97,7 @@ func (t *Tail) Start(acc telegraf.Accumulator) error { ...@@ -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)
......
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