From d0d01a16d9891f28405e28caaa03d92de0eed75f Mon Sep 17 00:00:00 2001 From: arzynik Date: Thu, 29 Nov 2012 19:02:27 -0500 Subject: [PATCH] dont alert on live --- include/library/Crunchbutton/Notification/Log.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/library/Crunchbutton/Notification/Log.php b/include/library/Crunchbutton/Notification/Log.php index e6e06aa13..f1c1e405d 100644 --- a/include/library/Crunchbutton/Notification/Log.php +++ b/include/library/Crunchbutton/Notification/Log.php @@ -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,