From dc053a42c6f8c7869dc5c9aa08c8036ab4661c61 Mon Sep 17 00:00:00 2001 From: ccoVeille <3875889+ccoVeille@users.noreply.github.com> Date: Tue, 2 Dec 2025 14:51:51 +0100 Subject: [PATCH] chore(log): bad sprintf syntax (#3632) There is no Stringer on the channel struct, so using %s causes an error. Using %v to print the default representation instead. Co-authored-by: Nedyalko Dyakov <1547186+ndyakov@users.noreply.github.com> --- pubsub.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pubsub.go b/pubsub.go index 959a5c45..1b9d4e7f 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: