Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/deck.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-10-02 14:54:56 +0300
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-10-02 14:54:56 +0300
commitf166552de06cc7abba29f9b8c19f20acd717b08a (patch)
tree2cd483fbd3a28c6dc5b43b5ba7edc9bd8de8c690
parentaab33526243a0a590438b65158ff82cc9e672002 (diff)
Remove uses of Util:: loglevel constants removed from server
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r--lib/Middleware/ExceptionMiddleware.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Middleware/ExceptionMiddleware.php b/lib/Middleware/ExceptionMiddleware.php
index 0c59a5e1..0b0dc013 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);
}