We will work on Apr 26th (Saturday) and will be off from Apr 30th (Wednesday) until May 2nd (Friday) for public holiday in our country

Commit b5574c05 authored by Giorgos Adam's avatar Giorgos Adam

Added detailed cron exception logging

parent 2e87b22a
...@@ -232,6 +232,16 @@ class Cron ...@@ -232,6 +232,16 @@ class Cron
* @return void * @return void
*/ */
public function processNotification() public function processNotification()
{
try {
$this->execute();
} catch(\Exception $e) {
$this->_adyenLogger->addAdyenNotificationCronjob($e->getMessage() . "\n" . $e->getTraceAsString());
throw $e;
}
}
public function execute()
{ {
// needed for Magento < 2.2.0 https://github.com/magento/magento2/pull/8413 // needed for Magento < 2.2.0 https://github.com/magento/magento2/pull/8413
$renderer = Phrase::getRenderer(); $renderer = Phrase::getRenderer();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment