mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
改进Log类的record方法
This commit is contained in:
@@ -44,6 +44,9 @@ class Sae
|
||||
$info = '[ log ] ' . $current_uri . $time_str . $memory_str . $file_load . "\r\n";
|
||||
foreach ($log as $type => $val) {
|
||||
foreach ($val as $msg) {
|
||||
if (!is_string($msg)) {
|
||||
$msg = var_export($msg, true);
|
||||
}
|
||||
$info .= '[ ' . $type . ' ] ' . $msg . "\r\n";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user