debug sms
authorMark <mark@nirph.com>
Wed, 11 Jan 2017 10:17:20 +0000 (12:17 +0200)
committerMark <mark@nirph.com>
Wed, 11 Jan 2017 10:17:20 +0000 (12:17 +0200)
module/Utility/src/Utility/Comms/Notification.php
module/Utility/src/Utility/Comms/Sms.php

index 410620c..1b36c36 100644 (file)
@@ -523,11 +523,12 @@ class Notification
                $apiMsgId = '';
                try
                {
                $apiMsgId = '';
                try
                {
-//                     \Utility\Debug::errorLog("tryingNotification","sms");
-                       error_log("tryingNotification",$mobile);
+                       \Utility\Debug::errorLog("tryingNotification","sms");
+
                        if (!$disableSms && $smsTemplate && $mobile)
                        {
                        if (!$disableSms && $smsTemplate && $mobile)
                        {
-                               if (IS_STAGE_ENV || 'production' == \Utility\Registry::getConfigParam('Instance'))
+//                             if (IS_STAGE_ENV || 'production' == \Utility\Registry::getConfigParam('Instance'))
+                               if (IS_STAGE_ENV || IS_LIVE_ENV)
                                {
                                        if (IS_STAGE_ENV)
                                        {
                                {
                                        if (IS_STAGE_ENV)
                                        {
index 4dcec59..01323aa 100644 (file)
@@ -265,7 +265,6 @@ class Sms
               . "&text=".substr(urlencode($this->sBody),0,620);
 
         \Utility\Debug::errorLog("sms url", $sUrl);
               . "&text=".substr(urlencode($this->sBody),0,620);
 
         \Utility\Debug::errorLog("sms url", $sUrl);
-        error_log("sms url", $sUrl);
 
         if (!empty($this->sSmscId))
         {
 
         if (!empty($this->sSmscId))
         {