From c256c9be192a502488345881fcab845b41ef2b87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Thu, 14 Oct 2021 09:13:20 +0200 Subject: [PATCH] Fix two mistakes in previous migration to LoggerInterface in OCA\User_LDAP\Access MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- apps/user_ldap/ajax/wizard.php | 3 ++- apps/user_ldap/lib/Jobs/Sync.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/user_ldap/ajax/wizard.php b/apps/user_ldap/ajax/wizard.php index 103ba3cd384..cf744180979 100644 --- a/apps/user_ldap/ajax/wizard.php +++ b/apps/user_ldap/ajax/wizard.php @@ -71,7 +71,8 @@ $access = new \OCA\User_LDAP\Access( $userManager, new \OCA\User_LDAP\Helper(\OC::$server->getConfig(), \OC::$server->getDatabaseConnection()), \OC::$server->getConfig(), - \OC::$server->getUserManager() + \OC::$server->getUserManager(), + \OC::$server->get(\Psr\Log\LoggerInterface::class) ); $wizard = new \OCA\User_LDAP\Wizard($configuration, $ldapWrapper, $access); diff --git a/apps/user_ldap/lib/Jobs/Sync.php b/apps/user_ldap/lib/Jobs/Sync.php index 9f2ea722cee..585a09bd5f3 100644 --- a/apps/user_ldap/lib/Jobs/Sync.php +++ b/apps/user_ldap/lib/Jobs/Sync.php @@ -342,7 +342,7 @@ class Sync extends TimedJob { if (isset($argument['logger'])) { $this->logger = $argument['logger']; } else { - $this->logger = \OC::$server->getLogger(); + $this->logger = \OC::$server->get(LoggerInterface::class); } if (isset($argument['notificationManager'])) {