diff --git a/lib/Middleware/ExceptionMiddleware.php b/lib/Middleware/ExceptionMiddleware.php index 0d4cd7feb..aa0fdb5f1 100644 --- a/lib/Middleware/ExceptionMiddleware.php +++ b/lib/Middleware/ExceptionMiddleware.php @@ -98,9 +98,7 @@ class ExceptionMiddleware extends Middleware { 'status' => 500, '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) { $response['exception'] = (array) $exception; }