Always log generic exceptions
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
committed by
backportbot[bot]
parent
d43c7a48cc
commit
fee49f3699
@@ -98,9 +98,7 @@ class ExceptionMiddleware extends Middleware {
|
|||||||
'status' => 500,
|
'status' => 500,
|
||||||
'message' => $exception->getMessage()
|
'message' => $exception->getMessage()
|
||||||
];
|
];
|
||||||
if ($this->config->getSystemValue('loglevel', Util::WARN) === Util::DEBUG) {
|
|
||||||
$this->logger->logException($exception);
|
$this->logger->logException($exception);
|
||||||
}
|
|
||||||
if ($this->config->getSystemValue('debug', true) === true) {
|
if ($this->config->getSystemValue('debug', true) === true) {
|
||||||
$response['exception'] = (array) $exception;
|
$response['exception'] = (array) $exception;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user