Merge pull request #480 from Icinga/feature/retention-logging

Retention: periodically log number of items removed
This commit is contained in:
Julian Brost 2022-05-13 15:17:18 +02:00 committed by GitHub
commit 772e9bddfd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -194,6 +194,10 @@ func (r *Retention) StartWithCallback(ctx context.Context, c func(table string,
return
}
if rs.Count > 0 {
r.logger.Infof("Removed %d old %s history items", rs.Count, category)
}
if c != nil {
c(stmt.Table, rs)
}