Skip to content

Commit 78c02c7

Browse files
committed
apply trace into handleError()
1 parent 3ddd9f8 commit 78c02c7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Handler/Logging.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,12 +312,14 @@ public function handleError(
312312
}
313313

314314
$priority = Logger::$errorPriorityMap[$errorType];
315+
$error = new ErrorException($errorMessage, 500, $errorType, $errorFile, $errorLine);
315316

316317
$extra = [
317318
'url' => $this->serverUrl.$this->requestUri,
318319
'file' => $errorFile,
319320
'line' => $errorLine,
320321
'error_type' => $errorTypeString,
322+
'trace' => $error->getTraceAsString(),
321323
'request_data' => $this->getRequestData(),
322324
];
323325
$this->logger->log($priority, $errorMessage, $extra);

0 commit comments

Comments
 (0)