Skip to content

Commit dc053a4

Browse files
ccoVeillendyakov
andauthored
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>
1 parent 981f5db commit dc053a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pubsub.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ func (c *channel) initMsgChan() {
734734
}
735735
case <-timer.C:
736736
internal.Logger.Printf(
737-
ctx, "redis: %s channel is full for %s (message is dropped)",
737+
ctx, "redis: %v channel is full for %s (message is dropped)",
738738
c, c.chanSendTimeout)
739739
}
740740
default:
@@ -788,7 +788,7 @@ func (c *channel) initAllChan() {
788788
}
789789
case <-timer.C:
790790
internal.Logger.Printf(
791-
ctx, "redis: %s channel is full for %s (message is dropped)",
791+
ctx, "redis: %v channel is full for %s (message is dropped)",
792792
c, c.chanSendTimeout)
793793
}
794794
default:

0 commit comments

Comments
 (0)