summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2019-04-02 22:52:12 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2019-04-02 22:52:12 +0200
commit518998093f12b18f7c9bc35f5be8a2e03493bdeb (patch)
treed17cc28dd0abc3c32a3611f695307de565e06b31 /apps/user_ldap/lib
parentf2e9babaabeaecdf84bc7ae57cc7be6c7e16e431 (diff)
downloadnextcloud-server-518998093f12b18f7c9bc35f5be8a2e03493bdeb.tar.gz
nextcloud-server-518998093f12b18f7c9bc35f5be8a2e03493bdeb.zip
set the loglevel in context, save the condition
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/user_ldap/lib')
-rw-r--r--apps/user_ldap/lib/User_LDAP.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/user_ldap/lib/User_LDAP.php b/apps/user_ldap/lib/User_LDAP.php
index e69eafecc86..cdbc2e9b350 100644
--- a/apps/user_ldap/lib/User_LDAP.php
+++ b/apps/user_ldap/lib/User_LDAP.php
@@ -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];