summaryrefslogtreecommitdiffstats
path: root/lib/private/Log.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-07-30 14:57:19 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-07-30 14:57:19 +0200
commit8cdd134e7ecc9dd67ffd88e5bd28e41fb7b60a1b (patch)
tree63c22d795af21f1da7f9246cee4b617614b92afb /lib/private/Log.php
parentb1af61006973aa6d489a4f8ef710f34091124df5 (diff)
downloadnextcloud-server-8cdd134e7ecc9dd67ffd88e5bd28e41fb7b60a1b.tar.gz
nextcloud-server-8cdd134e7ecc9dd67ffd88e5bd28e41fb7b60a1b.zip
Fetch logcondition earlier
Fixes #9693 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Log.php')
-rw-r--r--lib/private/Log.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/Log.php b/lib/private/Log.php
index 4170acbb69a..33d1ddcdc34 100644
--- a/lib/private/Log.php
+++ b/lib/private/Log.php
@@ -220,6 +220,8 @@ class Log implements ILogger {
}
private function getLogLevel($context) {
+ $logCondition = $this->config->getValue('log.condition', []);
+
/**
* check for a special log condition - this enables an increased log on
* a per request/user base
@@ -265,7 +267,6 @@ class Log implements ILogger {
}
if (isset($context['app'])) {
- $logCondition = $this->config->getValue('log.condition', []);
$app = $context['app'];
/**