Merge pull request #1022 from nats-io/sc

Add chunk and total bytes to slow consumer log
This commit is contained in:
Derek Collison
2019-05-30 10:17:52 -07:00
committed by GitHub

View File

@@ -940,7 +940,8 @@ func (c *client) flushOutbound() bool {
if sce {
atomic.AddInt64(&srv.slowConsumers, 1)
c.clearConnection(SlowConsumerWriteDeadline)
c.Noticef("Slow Consumer Detected: WriteDeadline of %v Exceeded", c.out.wdl)
c.Noticef("Slow Consumer Detected: WriteDeadline of %v exceeded with %d chunks of %d total bytes.",
c.out.wdl, len(cnb), attempted)
}
} else {
c.clearConnection(WriteError)