改进Log类的record方法

This commit is contained in:
thinkphp
2016-06-14 14:24:25 +08:00
parent c9155c016d
commit 15aeb6d7f4
5 changed files with 12 additions and 6 deletions

View File

@@ -72,6 +72,9 @@ class Trace
$debug = [];
foreach ($log as $type => $val) {
foreach ($val as $msg) {
if (!is_string($msg)) {
$msg = var_export($msg, true);
}
$debug[$type][] = $msg;
}
}