로그폴더 검색되지 않도록 수정
This commit is contained in:
@ -143,7 +143,7 @@ class XPayClient
|
||||
// log_dir 재설정
|
||||
$this->config["log_dir"] = $home_dir."/log";
|
||||
|
||||
$this->log_file = $this->config["log_dir"] . "/log_" . date("Ymd") . ".log";
|
||||
$this->log_file = $this->config["log_dir"] . "/log_" . date("Ymd") . '_' . substr(md5(mt_rand()), 0, 12) . ".log";
|
||||
// make log directory if does not exist
|
||||
if (!file_exists($this->config["log_dir"])) {
|
||||
mkdir($this->config["log_dir"], "0777", true);
|
||||
|
||||
@ -141,7 +141,7 @@ class XPayClient
|
||||
$array3 = array($mid => $mertkey);
|
||||
$this->config = $array1 + $array2 + $array3;
|
||||
|
||||
$this->log_file = $this->config["log_dir"] . "/log_" . date("Ymd") . ".log";
|
||||
$this->log_file = $this->config["log_dir"] . "/log_" . date("Ymd") . '_' . substr(md5(mt_rand()), 0, 12) . ".log";
|
||||
// make log directory if does not exist
|
||||
if (!file_exists($this->config["log_dir"])) {
|
||||
mkdir($this->config["log_dir"], "0777", true);
|
||||
|
||||
Reference in New Issue
Block a user