소스 검색

log on bailout

Thibault bui Koechlin 5 년 전
부모
커밋
0e6a5be04b
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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