Commit 33c68669 authored by 刘小敏's avatar 刘小敏

Merge branch 'dev' of http://git.ruanyiit.com/liuxiaomin/loveisland into dev

parents 01de3a24 3e1d1b3f
......@@ -49,7 +49,7 @@ class File
$destination = $this->getMasterLogFile();
$path = dirname($destination);
!is_dir($path) && mkdir($path, 0755, true);
!is_dir($path) && mkdir($path, 0777, true);
$info = [];
foreach ($log as $type => $val) {
......@@ -168,7 +168,14 @@ class File
$message = $this->parseLog($info);
}
return error_log($message, 3, $destination);
$result = error_log($message, 3, $destination);
// 设置日志文件权限
if ($result && isset($this->config['file_permission'])) {
@chmod($destination, $this->config['file_permission']);
}
return $result;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment