mirror of https://github.com/harness/drone.git
add logging for redis history sanning (#2417)
parent
aa24282254
commit
0c5c478652
|
@ -286,6 +286,14 @@ func (c *RedisConsumer) reader(ctx context.Context) {
|
|||
if len(stream.Messages) > 0 {
|
||||
scanHistory = true
|
||||
streamsArg[streamLen+x] = stream.Messages[len(stream.Messages)-1].ID
|
||||
|
||||
c.pushInfo(fmt.Sprintf(
|
||||
"stream %q had %d more messages in the history (delivered but no yet acked),"+
|
||||
"continuing scanning after %q",
|
||||
stream.Stream,
|
||||
len(stream.Messages),
|
||||
streamsArg[streamLen+x],
|
||||
))
|
||||
}
|
||||
x++
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue