1
0
mirror of https://github.com/redis/go-redis.git synced 2025-12-06 18:20:58 +03:00

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>
This commit is contained in:
ccoVeille
2025-12-02 14:51:51 +01:00
committed by GitHub
parent 981f5db9a2
commit dc053a42c6

View File

@@ -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: