Switch all item deletion logging to info level

This commit is contained in:
Hypolite Petovan 2020-03-04 15:59:19 -05:00
parent b4597a643d
commit f047944b2d
5 changed files with 13 additions and 13 deletions

View file

@ -45,7 +45,7 @@ class Expire
$condition = ["`deleted` AND `changed` < UTC_TIMESTAMP() - INTERVAL 60 DAY"];
$rows = DBA::select('item', ['id', 'guid'], $condition);
while ($row = DBA::fetch($rows)) {
Logger::notice('Delete expired item', ['id' => $row['id'], 'guid' => $row['guid']]);
Logger::info('Delete expired item', ['id' => $row['id'], 'guid' => $row['guid']]);
DBA::delete('item', ['id' => $row['id']]);
}
DBA::close($rows);