mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
modified 修复日志记录异常
This commit is contained in:
parent
974e192c00
commit
d73adc353b
@ -87,7 +87,7 @@ class ApiLogTool {
|
||||
*/
|
||||
public static function writeLog($log, $type = 'sql', $filePath = '') {
|
||||
if(!$filePath) {
|
||||
$filePath = '.' . DIRECTORY_SEPARATOR . 'runtime' . DIRECTORY_SEPARATOR;
|
||||
$filePath = Env::get('runtime_path') . DIRECTORY_SEPARATOR;
|
||||
}
|
||||
$filename = $filePath . date("Ymd") . '_' . $type . ".log";
|
||||
@$handle = fopen($filename, "a+");
|
||||
|
Loading…
x
Reference in New Issue
Block a user