Skip to content

Commit

Permalink
print oversized messages to stdout (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
ojagodzinski authored Nov 27, 2018
1 parent 015b511 commit 90f54a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions servicelog/appender/logstash.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ func (l *logstash) sendEntry(entry servicelog.Entry) error {
if err != nil {
if err == xio.ErrSizeLimitExceeded {
l.droppedBecauseOfSize.Inc(1)
log.Infof("message dropped because of size: %s", string(bytes))
return nil // returning this error will spam stdout with errors
}
if err == xio.ErrRateLimitExceeded {
Expand Down

0 comments on commit 90f54a1

Please sign in to comment.