改进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

@@ -92,6 +92,9 @@ class Socket
'css' => isset($this->css[$type]) ? $this->css[$type] : '',
];
foreach ($val as $msg) {
if (!is_string($msg)) {
$msg = var_export($msg, true);
}
$trace[] = [
'type' => 'log',
'msg' => $msg,