Add last seen error date to the system status page [MAILPOET-2083]

This commit is contained in:
wxa
2019-05-20 21:00:42 +03:00
committed by M. Shull
parent 594b96c40d
commit 4d45e97ec4
4 changed files with 12 additions and 0 deletions

View File

@ -26,6 +26,7 @@ class CronHelper {
'run_started_at' => null,
'run_completed_at' => null,
'last_error' => null,
'last_error_date' => null,
];
self::saveDaemon($daemon);
return $daemon;
@ -44,6 +45,7 @@ class CronHelper {
$daemon = self::getDaemon();
if ($daemon) {
$daemon['last_error'] = $error;
$daemon['last_error_date'] = time();
self::saveDaemon($daemon);
}
}