This commit is contained in:
thinkphp
2019-01-11 17:55:32 +08:00
parent df2e645d3d
commit 338f7ad636

View File

@@ -154,19 +154,21 @@ class File
if (PHP_SAPI == 'cli') {
$info['msg'] = $msg;
$info['type'] = $type;
error_log($this->parseCliLog($info), 3, $destination);
} else {
$info[$type] = $msg;
}
}
if (PHP_SAPI != 'cli') {
if (PHP_SAPI == 'cli') {
$message = $this->parseCliLog($info);
} else {
// 添加调试日志
$this->getDebugLog($info, $append, $apart);
$message = $this->parseLog($info);
return error_log($message, 3, $destination);
}
return error_log($message, 3, $destination);
}
/**