mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-09-03 05:41:38 +08:00
修正trace方法和trace驱动
This commit is contained in:
@@ -65,7 +65,7 @@ class Log
|
||||
public static function record($msg, $type = 'log')
|
||||
{
|
||||
if (!is_string($msg)) {
|
||||
$msg = print_r($msg, true);
|
||||
$msg = var_export($msg, true);
|
||||
}
|
||||
self::$log[] = ['type' => $type, 'msg' => $msg];
|
||||
}
|
||||
@@ -88,7 +88,7 @@ class Log
|
||||
public static function write($msg, $type = 'log')
|
||||
{
|
||||
if (!is_string($msg)) {
|
||||
$msg = print_r($msg, true);
|
||||
$msg = var_export($msg, true);
|
||||
}
|
||||
// 封装日志信息
|
||||
$log[] = ['type' => $type, 'msg' => $msg];
|
||||
|
||||
Reference in New Issue
Block a user