log on bailout

This commit is contained in:
Thibault bui Koechlin 2020-06-26 15:34:00 +02:00
parent fdc18f1a71
commit 0e6a5be04b

View file

@ -57,6 +57,7 @@ func (c *Context) CleanUpRecordsByAge() error {
//no events elligible
if len(sos) == 0 || ret.RowsAffected == 0 {
log.Infof("no event older than %s", c.maxDurationRetention.String())
return nil
}
//let's do it in a single transaction