diff --git a/src/Handler/Logging.php b/src/Handler/Logging.php index 02b9737e..20104700 100644 --- a/src/Handler/Logging.php +++ b/src/Handler/Logging.php @@ -312,12 +312,14 @@ public function handleError( } $priority = Logger::$errorPriorityMap[$errorType]; + $error = new ErrorException($errorMessage, 500, $errorType, $errorFile, $errorLine); $extra = [ 'url' => $this->serverUrl.$this->requestUri, 'file' => $errorFile, 'line' => $errorLine, 'error_type' => $errorTypeString, + 'trace' => $error->getTraceAsString(), 'request_data' => $this->getRequestData(), ]; $this->logger->log($priority, $errorMessage, $extra);