From f8992de4c02b463d70019e0e3d1e3ae748343dbd Mon Sep 17 00:00:00 2001 From: ccoVeille <3875889+ccoVeille@users.noreply.github.com> Date: Tue, 2 Dec 2025 13:29:33 +0100 Subject: [PATCH] fix: bad sprintf syntax There is no Stringer on the channel struct, so using %s causes an error. Using %v to print the default representation instead. --- pubsub.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pubsub.go b/pubsub.go index 959a5c45b1..1b9d4e7fe1 100644 --- a/pubsub.go +++ b/pubsub.go @@ -734,7 +734,7 @@ func (c *channel) initMsgChan() { } case <-timer.C: internal.Logger.Printf( - ctx, "redis: %s channel is full for %s (message is dropped)", + ctx, "redis: %v channel is full for %s (message is dropped)", c, c.chanSendTimeout) } default: @@ -788,7 +788,7 @@ func (c *channel) initAllChan() { } case <-timer.C: internal.Logger.Printf( - ctx, "redis: %s channel is full for %s (message is dropped)", + ctx, "redis: %v channel is full for %s (message is dropped)", c, c.chanSendTimeout) } default: