diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-04-02 23:43:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-02 23:43:39 +0200 |
commit | 4491ed6db1c3138d596d81d8419a0a359d7c00b6 (patch) | |
tree | a1fdcf134eda12364f257b6a41b89892c886ba87 | |
parent | b365840004028c2035d0da3d78da7ae692eff187 (diff) | |
parent | 518998093f12b18f7c9bc35f5be8a2e03493bdeb (diff) | |
download | nextcloud-server-4491ed6db1c3138d596d81d8419a0a359d7c00b6.tar.gz nextcloud-server-4491ed6db1c3138d596d81d8419a0a359d7c00b6.zip |
Merge pull request #14936 from nextcloud/fix/noid/loglevel-in-context
set the loglevel in context, save the condition
-rw-r--r-- | apps/user_ldap/lib/User_LDAP.php | 4 |
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]; |