diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2021-04-27 15:38:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-27 15:38:12 +0200 |
commit | 99f0b104216618625114d6dc314598dc294f080d (patch) | |
tree | 5f788797751a39248cdf07a3803898ccbdb9c22c /lib/private/InitialStateService.php | |
parent | 48c50277a92b3b37fb4a9a9e7e20a487649b99db (diff) | |
parent | 2d75868935c7eedc5f94e63a45a27875e19053dc (diff) | |
download | nextcloud-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/InitialStateService.php')
-rw-r--r-- | lib/private/InitialStateService.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/private/InitialStateService.php b/lib/private/InitialStateService.php index bbc893269f7..38de49b4780 100644 --- a/lib/private/InitialStateService.php +++ b/lib/private/InitialStateService.php @@ -33,12 +33,12 @@ use OC\AppFramework\Bootstrap\Coordinator; use OCP\AppFramework\QueryException; use OCP\AppFramework\Services\InitialStateProvider; use OCP\IInitialStateService; -use OCP\ILogger; use OCP\IServerContainer; +use Psr\Log\LoggerInterface; class InitialStateService implements IInitialStateService { - /** @var ILogger */ + /** @var LoggerInterface */ private $logger; /** @var string[][] */ @@ -53,7 +53,7 @@ class InitialStateService implements IInitialStateService { /** @var IServerContainer */ private $container; - public function __construct(ILogger $logger, Coordinator $bootstrapCoordinator, IServerContainer $container) { + public function __construct(LoggerInterface $logger, Coordinator $bootstrapCoordinator, IServerContainer $container) { $this->logger = $logger; $this->bootstrapCoordinator = $bootstrapCoordinator; $this->container = $container; @@ -118,9 +118,8 @@ class InitialStateService implements IInitialStateService { $provider = $this->container->query($initialState->getService()); } catch (QueryException $e) { // Log an continue. We can be fault tolerant here. - $this->logger->logException($e, [ - 'message' => 'Could not load initial state provider dynamically: ' . $e->getMessage(), - 'level' => ILogger::ERROR, + $this->logger->error('Could not load initial state provider dynamically: ' . $e->getMessage(), [ + 'exception' => $e, 'app' => $initialState->getAppId(), ]); continue; |