fix(inputs.syslog): print error when no error or message given (#11997)
This commit is contained in:
parent
ee3bc36c1e
commit
6fa06d4405
|
|
@ -209,6 +209,9 @@ func (s *Syslog) listenPacket(acc telegraf.Accumulator) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
acc.AddError(err)
|
acc.AddError(err)
|
||||||
}
|
}
|
||||||
|
if err == nil && message == nil {
|
||||||
|
acc.AddError(fmt.Errorf("unable to parse message: %s", string(b[:n])))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue