Log handled exceptions

This commit is contained in:
Pierre Rudloff 2020-10-18 12:49:44 +02:00
parent 07f19a80f4
commit 234ecc2c6d
2 changed files with 4 additions and 1 deletions

View file

@ -293,6 +293,8 @@ class FrontController extends BaseController
*/
public function error(Request $request, Response $response, Throwable $error)
{
$this->logger->error($error);
if ($this->config->debug) {
$renderer = new HtmlErrorRenderer(true);
$exception = $renderer->render($error);