mirror of
https://github.com/nextcloud/server.git
synced 2025-03-15 00:43:23 +00:00
Merge pull request #14936 from nextcloud/fix/noid/loglevel-in-context
set the loglevel in context, save the condition
This commit is contained in:
commit
4491ed6db1
1 changed files with 1 additions and 3 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue