]> source.dussan.org Git - nextcloud-server.git/commitdiff
set the loglevel in context, save the condition 14936/head
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Tue, 2 Apr 2019 20:52:12 +0000 (22:52 +0200)
committerArthur Schiwon <blizzz@arthur-schiwon.de>
Tue, 2 Apr 2019 20:52:12 +0000 (22:52 +0200)
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
apps/user_ldap/lib/User_LDAP.php

index e69eafecc86db66086adebc6509f58fe11d8680c..cdbc2e9b35002645c7ec644ed13024ab72ca95bb 100644 (file)
@@ -190,9 +190,7 @@ class User_LDAP extends BackendUtility implements \OCP\IUserBackend, \OCP\UserIn
                try {
                        $ldapRecord = $this->getLDAPUserByLoginName($uid);
                } catch(NotOnLDAP $e) {
-                       if($this->ocConfig->getSystemValue('loglevel', ILogger::WARN) === ILogger::DEBUG) {
-                               \OC::$server->getLogger()->logException($e, ['app' => 'user_ldap']);
-                       }
+                       \OC::$server->getLogger()->logException($e, ['app' => 'user_ldap', 'level' => ILogger::DEBUG]);
                        return false;
                }
                $dn = $ldapRecord['dn'][0];