mirror of
https://github.com/flarum/core.git
synced 2025-10-11 23:14:29 +02:00
Log errors when debug mode is on too
This commit is contained in:
@@ -54,9 +54,7 @@ class FallbackExceptionHandler implements ExceptionHandlerInterface
|
||||
$status = 500;
|
||||
$error = $this->constructError($e, $status);
|
||||
|
||||
if (! $this->debug) {
|
||||
$this->logger->error($e);
|
||||
}
|
||||
$this->logger->error($e);
|
||||
|
||||
return new ResponseBag($status, [$error]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user