[IMPROVED] Debug logging for purgeArchive calls
This commit is contained in:
parent
ac1a561f7b
commit
0ecb921035
@ -26,9 +26,11 @@ chdir(dirname(__FILE__));
|
|||||||
require_once('shared.inc.php');
|
require_once('shared.inc.php');
|
||||||
|
|
||||||
// If we don't keep archives, delete some now to release disk space
|
// If we don't keep archives, delete some now to release disk space
|
||||||
if (!$share->purgeArchive()) {
|
if (!$affected_rows = $share->purgeArchive()) {
|
||||||
$log->logError("Failed to delete archived shares, not critical but should be checked: " . $share->getCronError());
|
$log->logError("Failed to delete archived shares, not critical but should be checked: " . $share->getCronError());
|
||||||
$monitoring->endCronjob($cron_name, 'E0008', 1, true);
|
$monitoring->endCronjob($cron_name, 'E0008', 1, true);
|
||||||
|
} else {
|
||||||
|
$log->logDebug("Deleted $affected_rows archived shares this run");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Cron cleanup and monitoring
|
// Cron cleanup and monitoring
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user