Skip to content

Commit 10b6cee

Browse files
author
dimitrytarasov
committed
Do not exclude trace items that do not contain file path
1 parent 15360d6 commit 10b6cee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Stackify/Log/Entities/ErrorWrapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ private function filterTrace(array $trace)
132132
}
133133
foreach ($trace as $item) {
134134
// check if path starts with $excludePath
135-
if (isset($item['file']) && false === strpos($item['file'], $excludePath)) {
135+
if (!isset($item['file']) || false === strpos($item['file'], $excludePath)) {
136136
$filtered[] = $item;
137137
}
138138
}

0 commit comments

Comments
 (0)