mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-15 18:50:41 -07:00
Merge pull request #1022 from nats-io/sc
Add chunk and total bytes to slow consumer log
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user