Selaa lähdekoodia

log on bailout

Thibault bui Koechlin 5 vuotta sitten
vanhempi
commit
0e6a5be04b
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      pkg/sqlite/commit.go

+ 1 - 0
pkg/sqlite/commit.go

@@ -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