Skip to content

Commit

Permalink
fix(inputs.syslog): print error when no error or message given (#11997)
Browse files Browse the repository at this point in the history
  • Loading branch information
powersj authored Oct 12, 2022
1 parent ee3bc36 commit 6fa06d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/inputs/syslog/syslog.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,9 @@ func (s *Syslog) listenPacket(acc telegraf.Accumulator) {
if err != nil {
acc.AddError(err)
}
if err == nil && message == nil {
acc.AddError(fmt.Errorf("unable to parse message: %s", string(b[:n])))
}
}
}

Expand Down

0 comments on commit 6fa06d4

Please sign in to comment.