diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-04-03 00:43:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-03 00:43:39 +0300 |
commit | 4491ed6db1c3138d596d81d8419a0a359d7c00b6 (patch) | |
tree | a1fdcf134eda12364f257b6a41b89892c886ba87 /apps | |
parent | b365840004028c2035d0da3d78da7ae692eff187 (diff) | |
parent | 518998093f12b18f7c9bc35f5be8a2e03493bdeb (diff) |
Merge pull request #14936 from nextcloud/fix/noid/loglevel-in-context
set the loglevel in context, save the condition
Diffstat (limited to 'apps')
-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]; |