Skip to content

Commit

Permalink
apply trace into handleError()
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Mar 31, 2017
1 parent 3ddd9f8 commit 78c02c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Handler/Logging.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 78c02c7

Please sign in to comment.