mirror of
https://github.com/Icinga/icingadb.git
synced 2026-06-09 00:42:37 -04:00
Merge pull request #480 from Icinga/feature/retention-logging
Retention: periodically log number of items removed
This commit is contained in:
commit
772e9bddfd
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue