Skip to content

Commit a145455

Browse files
committed
Avoid closures by excluding previous trace and getting current error trace as string.
1 parent ada71d9 commit a145455

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/LogToDB.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,7 @@ private function parseIfException($context)
223223
$newexception['line'] = $exception->getLine();
224224
}
225225
if (method_exists($exception, 'getTrace')) {
226-
$newexception['trace'] = $exception->getTrace();
227-
}
228-
if (method_exists($exception, 'getPrevious')) {
229-
$newexception['previous'] = $exception->getPrevious();
226+
$newexception['trace'] = $exception->getTraceAsString();
230227
}
231228
if (method_exists($exception, 'getSeverity')) {
232229
$newexception['severity'] = $exception->getSeverity();

0 commit comments

Comments
 (0)