mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
修正trace方法和trace驱动
This commit is contained in:
@@ -271,7 +271,7 @@ function S($name, $value = '', $options = null)
|
||||
*/
|
||||
function trace($log = '[think]', $level = 'log')
|
||||
{
|
||||
if ('[think]' == $log) {
|
||||
if ('[think]' === $log) {
|
||||
return \think\Log::getLog();
|
||||
} else {
|
||||
\think\Log::record($log, $level);
|
||||
|
||||
Reference in New Issue
Block a user