gotd: reduce unnecessary debug logs

This commit is contained in:
Tulir Asokan
2025-12-04 14:44:13 +02:00
parent c6dd85040c
commit c83a361c0b
9 changed files with 16 additions and 41 deletions
-4
View File
@@ -10,8 +10,6 @@ import (
)
func (c *Conn) ackLoop(ctx context.Context) error {
log := c.log.Named("ack")
var buf []int64
send := func() {
defer func() { buf = buf[:0] }()
@@ -20,8 +18,6 @@ func (c *Conn) ackLoop(ctx context.Context) error {
c.log.Error("Failed to ACK", zap.Error(err))
return
}
log.Debug("Ack", zap.Int64s("msg_ids", buf))
}
ticker := c.clock.Ticker(c.ackInterval)