lg XpayClient 로그 기록 남지 않도록 수정

This commit is contained in:
thisgun
2019-01-07 14:30:53 +09:00
parent 4cc8284016
commit 60387c8a95
2 changed files with 8 additions and 0 deletions

View File

@ -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";

View File

@ -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";