From 90f54a18c9b2b4e72dd9b09df57d4bffdf4ccbcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Jagodzi=C5=84ski?= Date: Tue, 27 Nov 2018 10:46:18 +0100 Subject: [PATCH] print oversized messages to stdout (#126) --- servicelog/appender/logstash.go | 1 + 1 file changed, 1 insertion(+) diff --git a/servicelog/appender/logstash.go b/servicelog/appender/logstash.go index 7b145252..6ddae18a 100644 --- a/servicelog/appender/logstash.go +++ b/servicelog/appender/logstash.go @@ -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 {