Skip to content

Commit 4ba6da2

Browse files
committed
兼容1.0版本
1 parent c75d1a4 commit 4ba6da2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/TraceDebug.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,13 @@ public function handle($request, Closure $next)
8989
*/
9090
protected function parseLog(array $log)
9191
{
92-
foreach ($log as $record) {
93-
$this->log[$record->type][] = $record->message;
92+
foreach ($log as $key => $record) {
93+
if (is_string($key) && is_array($record)) {
94+
$this->log = array_merge_recursive($this->log, $log);
95+
break;
96+
} else {
97+
$this->log[$record->type][] = $record->message;
98+
}
9499
}
95100
}
96101

0 commit comments

Comments
 (0)