Skip to content

Commit b6dca16

Browse files
authored
(fix) trim last line breaks on logs (#1806)
1 parent a6bbe5d commit b6dca16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DataCollector/LogsCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function getStorageLogs($path)
4545

4646
foreach ($this->getLogs($file) as $log) {
4747
$this->messages[] = [
48-
'message' => $log['header'] . $log['stack'],
48+
'message' => trim($log['header'] . $log['stack']),
4949
'label' => $log['level'],
5050
'time' => substr($log['header'], 1, 19),
5151
'collector' => $basename,

0 commit comments

Comments
 (0)