Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-04-03 00:43:39 +0300
committerGitHub <noreply@github.com>2019-04-03 00:43:39 +0300
commit4491ed6db1c3138d596d81d8419a0a359d7c00b6 (patch)
treea1fdcf134eda12364f257b6a41b89892c886ba87 /apps
parentb365840004028c2035d0da3d78da7ae692eff187 (diff)
parent518998093f12b18f7c9bc35f5be8a2e03493bdeb (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.php4
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];