Browse Source
set the loglevel in context, save the condition
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
pull/14936/head
Arthur Schiwon
7 years ago
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
1 changed files with
1 additions and
3 deletions
-
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]; |
|
|
|
|