From f166552de06cc7abba29f9b8c19f20acd717b08a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Sun, 2 Oct 2022 13:54:56 +0200 Subject: [PATCH] Remove uses of Util:: loglevel constants removed from server MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- lib/Middleware/ExceptionMiddleware.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/Middleware/ExceptionMiddleware.php b/lib/Middleware/ExceptionMiddleware.php index 0c59a5e17..0b0dc013e 100644 --- a/lib/Middleware/ExceptionMiddleware.php +++ b/lib/Middleware/ExceptionMiddleware.php @@ -33,7 +33,6 @@ use OCP\AppFramework\OCS\OCSException; use OCP\AppFramework\OCSController; use OCP\ILogger; use OCP\IRequest; -use OCP\Util; use OCP\IConfig; class ExceptionMiddleware extends Middleware { @@ -85,9 +84,9 @@ class ExceptionMiddleware extends Middleware { 'message' => 'Permission denied' ], 403); } - + if ($exception instanceof StatusException) { - if ($this->config->getSystemValue('loglevel', Util::WARN) === Util::DEBUG) { + if ($this->config->getSystemValue('loglevel', ILogger::WARN) === ILogger::DEBUG) { $this->logger->logException($exception); }