diff options
author | diosmosis <benakamoorthi@fastmail.fm> | 2014-03-30 23:14:46 +0400 |
---|---|---|
committer | diosmosis <benakamoorthi@fastmail.fm> | 2014-03-31 00:30:07 +0400 |
commit | 43d1a17cb1004e859757c9c0173f52cf78dc9dcf (patch) | |
tree | c8ed2fbc1cc0b35333d8ad1acb2058760d911fcf /misc/cron | |
parent | 7c1a73db9d5683ccb074012a1e735124f21a74a4 (diff) |
Do not call exit from within CronArchive class.
Diffstat (limited to 'misc/cron')
-rw-r--r-- | misc/cron/archive.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/misc/cron/archive.php b/misc/cron/archive.php index 4a4b17c435..384fdc707f 100644 --- a/misc/cron/archive.php +++ b/misc/cron/archive.php @@ -47,6 +47,8 @@ try { $archiving->run(); $archiving->runScheduledTasks(); $archiving->end(); +} catch (Piwik\CronArchiveFatalException $ex) { + $ex->logAndExit($archiving); } catch (Exception $e) { - $archiving->logFatalError($e->getMessage()); -} + $archiving->logFatalExceptionAndExit($e); +} |