Discard logging from tail library (#3128)
This commit is contained in:
parent
cc67c3f4de
commit
9b99dcac64
|
@ -188,6 +188,7 @@ func (l *LogParserPlugin) tailNewfiles(fromBeginning bool) error {
|
|||
Follow: true,
|
||||
Location: &seek,
|
||||
MustExist: true,
|
||||
Logger: tail.DiscardingLogger,
|
||||
})
|
||||
if err != nil {
|
||||
l.acc.AddError(err)
|
||||
|
|
|
@ -97,6 +97,7 @@ func (t *Tail) Start(acc telegraf.Accumulator) error {
|
|||
Location: seek,
|
||||
MustExist: true,
|
||||
Pipe: t.Pipe,
|
||||
Logger: tail.DiscardingLogger,
|
||||
})
|
||||
if err != nil {
|
||||
acc.AddError(err)
|
||||
|
|
Loading…
Reference in New Issue