From 0fc220baef763ef48ff670df1bb3822a6a99e1b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Fri, 25 Jun 2021 11:05:53 +0200 Subject: [PATCH] Always log generic exceptions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Middleware/ExceptionMiddleware.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; }