Skip to content

Commit 8e17e62

Browse files
committed
fix(log): remove debug log
1 parent 4b45620 commit 8e17e62

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

internal/pool/pool.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -389,14 +389,11 @@ func (p *ConnPool) Put(ctx context.Context, cn *Conn) {
389389
if replyType, err := cn.rd.PeekReplyType(); err == nil && replyType == proto.RespPush {
390390
// For push notifications, we allow some buffered data
391391
// The client will process these notifications before using the connection
392-
internal.Logger.Printf(ctx, "push: connection has buffered data, likely push notifications - will be processed by client")
393392
return
394393
}
395394
}
396395
// For non-RESP3 or data that is not a push notification, buffered data is unexpected
397-
internal.Logger.Printf(ctx, "Conn has unread data: %d bytes, closing it", cn.rd.Buffered())
398-
repl, err := cn.rd.ReadReply()
399-
internal.Logger.Printf(ctx, "Data: %v, ERR: %v", repl, err)
396+
internal.Logger.Printf(ctx, "Conn has unread data, closing it")
400397
p.Remove(ctx, cn, BadConnError{})
401398
return
402399
}

0 commit comments

Comments
 (0)