Skip to content

Commit 604c8e3

Browse files
committed
fix(tests): debug logger
1 parent d780401 commit 604c8e3

File tree

5 files changed

+718
-63
lines changed

5 files changed

+718
-63
lines changed

internal/pool/pool.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,9 @@ func (p *ConnPool) Put(ctx context.Context, cn *Conn) {
392392
}
393393
}
394394
// For non-RESP3 or data that is not a push notification, buffered data is unexpected
395-
internal.Logger.Printf(ctx, "Conn has unread data")
395+
internal.Logger.Printf(ctx, "Conn has unread data: %d bytes, closing it", cn.rd.Buffered())
396+
repl, err := cn.rd.ReadReply()
397+
internal.Logger.Printf(ctx, "Data: %v, ERR: %v", repl, err)
396398
p.Remove(ctx, cn, BadConnError{})
397399
return
398400
}

0 commit comments

Comments
 (0)