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 {
|
if len(stream.Messages) > 0 {
|
||||||
scanHistory = true
|
scanHistory = true
|
||||||
streamsArg[streamLen+x] = stream.Messages[len(stream.Messages)-1].ID
|
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++
|
x++
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue