summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2018-01-11 14:17:14 +0100
committerArthur Schiwon <blizzz@arthur-schiwon.de>2018-01-11 14:17:14 +0100
commit15a3f4659f7e6a84039cd8ef859d1dfb3eaedf9a (patch)
tree9f67e60371b1cc88914390e855cd94fbba05915c /apps
parentf292f98060b8f19893f6d4c311bf044428e72c04 (diff)
downloadnextcloud-server-15a3f4659f7e6a84039cd8ef859d1dfb3eaedf9a.tar.gz
nextcloud-server-15a3f4659f7e6a84039cd8ef859d1dfb3eaedf9a.zip
enrich log message with backtrace, but level it down to DEBUG
The message is not helpful anyway for an admin, and oftentimes is just valid (e.g. when searching with an offset beyond users in LDAP). Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps')
-rw-r--r--apps/user_ldap/lib/Access.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/user_ldap/lib/Access.php b/apps/user_ldap/lib/Access.php
index 14d5b826f63..d07a8a030a3 100644
--- a/apps/user_ldap/lib/Access.php
+++ b/apps/user_ldap/lib/Access.php
@@ -52,6 +52,7 @@ use OCA\User_LDAP\Mapping\AbstractMapping;
use OC\ServerNotAvailableException;
use OCP\IConfig;
+use OCP\Util;
/**
* Class Access
@@ -1937,9 +1938,8 @@ class Access extends LDAPUtility implements IUserTools {
}
\OCP\Util::writeLog('user_ldap', 'Ready for a paged search', \OCP\Util::DEBUG);
} else {
- \OCP\Util::writeLog('user_ldap',
- 'No paged search for us, Cpt., Limit '.$limit.' Offset '.$offset,
- \OCP\Util::INFO);
+ $e = new \Exception('No paged search possible, Limit '.$limit.' Offset '.$offset);
+ \OC::$server->getLogger()->logException($e, ['level' => Util::DEBUG]);
}
}