Skip to content
Snippets Groups Projects
Commit 92f2cf7d authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

log errors in jsonapi as well, fixes #614

Closes #614

Merge request studip/studip!1720
parent 3a8c5c99
No related branches found
No related tags found
No related merge requests found
...@@ -40,6 +40,10 @@ class ErrorHandler ...@@ -40,6 +40,10 @@ class ErrorHandler
$code = $this->determineStatusCode($exception, $request->getMethod()); $code = $this->determineStatusCode($exception, $request->getMethod());
if ($code >= 500) {
error_log($exception);
}
return $response->withStatus($code); return $response->withStatus($code);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment