Skip to content

Commit 3fe1541

Browse files
committed
fix: error with type passed to sprintf logger
1 parent 4f15e76 commit 3fe1541

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
@@ -747,7 +747,7 @@ func (c *channel) initMsgChan() {
747747
<-timer.C
748748
}
749749
case <-timer.C:
750-
c.logger().Errorf(ctx, "redis: %s channel is full for %s (message is dropped)", c, c.chanSendTimeout)
750+
c.logger().Errorf(ctx, "redis: %v channel is full for %s (message is dropped)", c, c.chanSendTimeout)
751751
}
752752
default:
753753
c.logger().Errorf(ctx, "redis: unknown message type: %T", msg)
@@ -799,7 +799,7 @@ func (c *channel) initAllChan() {
799799
<-timer.C
800800
}
801801
case <-timer.C:
802-
c.logger().Errorf(ctx, "redis: %s channel is full for %s (message is dropped)",
802+
c.logger().Errorf(ctx, "redis: %v channel is full for %s (message is dropped)",
803803
c, c.chanSendTimeout)
804804
}
805805
default:

0 commit comments

Comments
 (0)