set the loglevel in context, save the condition
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
f2e9babaab
commit
518998093f
|
@ -190,9 +190,7 @@ class User_LDAP extends BackendUtility implements \OCP\IUserBackend, \OCP\UserIn
|
||||||
try {
|
try {
|
||||||
$ldapRecord = $this->getLDAPUserByLoginName($uid);
|
$ldapRecord = $this->getLDAPUserByLoginName($uid);
|
||||||
} catch(NotOnLDAP $e) {
|
} catch(NotOnLDAP $e) {
|
||||||
if($this->ocConfig->getSystemValue('loglevel', ILogger::WARN) === ILogger::DEBUG) {
|
\OC::$server->getLogger()->logException($e, ['app' => 'user_ldap', 'level' => ILogger::DEBUG]);
|
||||||
\OC::$server->getLogger()->logException($e, ['app' => 'user_ldap']);
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$dn = $ldapRecord['dn'][0];
|
$dn = $ldapRecord['dn'][0];
|
||||||
|
|
Loading…
Reference in New Issue