summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2021-10-14 09:13:20 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2021-10-19 09:25:13 +0000
commit6372c34c400586c0ccfb412e961603414a7592e7 (patch)
tree0e6b96e6c0d3187cb865bffc5987e495e14f36a1
parentd29a13294906b81348db0763e645f9cb836cb24b (diff)
downloadnextcloud-server-6372c34c400586c0ccfb412e961603414a7592e7.tar.gz
nextcloud-server-6372c34c400586c0ccfb412e961603414a7592e7.zip
Fix two mistakes in previous migration to LoggerInterface in OCA\User_LDAP\Access
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r--apps/user_ldap/ajax/wizard.php3
-rw-r--r--apps/user_ldap/lib/Jobs/Sync.php2
2 files changed, 3 insertions, 2 deletions
diff --git a/apps/user_ldap/ajax/wizard.php b/apps/user_ldap/ajax/wizard.php
index c65ae23cd3b..9df66f81b13 100644
--- a/apps/user_ldap/ajax/wizard.php
+++ b/apps/user_ldap/ajax/wizard.php
@@ -69,7 +69,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 4d2e2944163..10036f8dc12 100644
--- a/apps/user_ldap/lib/Jobs/Sync.php
+++ b/apps/user_ldap/lib/Jobs/Sync.php
@@ -341,7 +341,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'])) {