diff --git a/plugin/lgxpay/lgdacom/XPayClient.php b/plugin/lgxpay/lgdacom/XPayClient.php index 600a9c908..07543e50a 100644 --- a/plugin/lgxpay/lgdacom/XPayClient.php +++ b/plugin/lgxpay/lgdacom/XPayClient.php @@ -604,6 +604,10 @@ class XPayClient function Log($msg, $level=LGD_LOG_FATAL) { + if( !(defined('LGD_LOG_SAVE') && LGD_LOG_SAVE) ){ + return; + } + if ($level > $this->config["log_level"]) return; $err_msg = date("Y-m-d H:i:s")." [".$this->err_label[$level]."] [".$this->TX_ID."] ".$msg."\n"; diff --git a/plugin/lgxpay/lgdacom/XPayClient4DB.php b/plugin/lgxpay/lgdacom/XPayClient4DB.php index 8f3eaefc0..b330656b1 100644 --- a/plugin/lgxpay/lgdacom/XPayClient4DB.php +++ b/plugin/lgxpay/lgdacom/XPayClient4DB.php @@ -602,6 +602,10 @@ class XPayClient function Log($msg, $level=LGD_LOG_FATAL) { + if( !(defined('LGD_LOG_SAVE') && LGD_LOG_SAVE) ){ + return; + } + if ($level > $this->config["log_level"]) return; $err_msg = date("Y-m-d H:i:s")." [".$this->err_label[$level]."] [".$this->TX_ID."] ".$msg."\n";