aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/InitialStateService.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-04-16 14:26:43 +0200
committerJoas Schilling <coding@schilljs.com>2021-04-27 14:34:32 +0200
commit56ae87c281d2f54b23f98acf0e138d8e72196a06 (patch)
treed875702c4eb0901bcf6d3e23570a05ba5c397954 /lib/private/InitialStateService.php
parentbf1c875425e7fdf5ffd3c233ddf1f567428b4168 (diff)
downloadnextcloud-server-56ae87c281d2f54b23f98acf0e138d8e72196a06.tar.gz
nextcloud-server-56ae87c281d2f54b23f98acf0e138d8e72196a06.zip
Less ILogger
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/InitialStateService.php')
-rw-r--r--lib/private/InitialStateService.php11
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;