dont alert on live

This commit is contained in:
arzynik 2012-11-29 19:02:27 -05:00
parent 9487bf66df
commit d0d01a16d9

View File

@ -20,6 +20,10 @@ class Crunchbutton_Notification_Log extends Cana_Table {
$this->status = 'maxcallbackexceeded';
$this->save();
if (c::env() != 'live') {
return;
}
Log::critical([
'id_order' => $this->id_order,
'id_notification_log' => $this->id_notification_log,
@ -56,6 +60,10 @@ class Crunchbutton_Notification_Log extends Cana_Table {
$this->status = 'maxconfirmbackexceeded';
$this->save();
if (c::env() != 'live') {
return;
}
Log::critical([
'id_order' => $this->id_order,
'id_notification_log' => $this->id_notification_log,