summaryrefslogtreecommitdiffstats
path: root/lib/private/AppFramework/Middleware
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2021-04-27 15:38:12 +0200
committerGitHub <noreply@github.com>2021-04-27 15:38:12 +0200
commit99f0b104216618625114d6dc314598dc294f080d (patch)
tree5f788797751a39248cdf07a3803898ccbdb9c22c /lib/private/AppFramework/Middleware
parent48c50277a92b3b37fb4a9a9e7e20a487649b99db (diff)
parent2d75868935c7eedc5f94e63a45a27875e19053dc (diff)
downloadnextcloud-server-99f0b104216618625114d6dc314598dc294f080d.tar.gz
nextcloud-server-99f0b104216618625114d6dc314598dc294f080d.zip
Merge pull request #26591 from nextcloud/techdebt/noid/less-ilogger
Less ILogger
Diffstat (limited to 'lib/private/AppFramework/Middleware')
-rw-r--r--lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php b/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php
index 76665f8998f..9fa696154ff 100644
--- a/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php
+++ b/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php
@@ -55,11 +55,11 @@ use OCP\AppFramework\Http\TemplateResponse;
use OCP\AppFramework\Middleware;
use OCP\AppFramework\OCSController;
use OCP\IL10N;
-use OCP\ILogger;
use OCP\INavigationManager;
use OCP\IRequest;
use OCP\IURLGenerator;
use OCP\Util;
+use Psr\Log\LoggerInterface;
/**
* Used to do all the authentication and checking stuff for a controller method
@@ -78,7 +78,7 @@ class SecurityMiddleware extends Middleware {
private $appName;
/** @var IURLGenerator */
private $urlGenerator;
- /** @var ILogger */
+ /** @var LoggerInterface */
private $logger;
/** @var bool */
private $isLoggedIn;
@@ -95,7 +95,7 @@ class SecurityMiddleware extends Middleware {
ControllerMethodReflector $reflector,
INavigationManager $navigationManager,
IURLGenerator $urlGenerator,
- ILogger $logger,
+ LoggerInterface $logger,
string $appName,
bool $isLoggedIn,
bool $isAdminUser,
@@ -233,9 +233,8 @@ class SecurityMiddleware extends Middleware {
}
}
- $this->logger->logException($exception, [
- 'level' => ILogger::DEBUG,
- 'app' => 'core',
+ $this->logger->debug($exception->getMessage(), [
+ 'exception' => $exception,
]);
return $response;
}