summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-07-30 22:07:06 +0200
committerGitHub <noreply@github.com>2018-07-30 22:07:06 +0200
commit1f610b4d1f33744a53162cb66b48a26f2c5ba970 (patch)
tree95f8590cd1b7f077bd3585e1fca85eecead57e12 /lib/private
parentf208ce920d7f27324f67aad9b052dfebf1d7df4e (diff)
parent8cdd134e7ecc9dd67ffd88e5bd28e41fb7b60a1b (diff)
downloadnextcloud-server-1f610b4d1f33744a53162cb66b48a26f2c5ba970.tar.gz
nextcloud-server-1f610b4d1f33744a53162cb66b48a26f2c5ba970.zip
Merge pull request #10451 from nextcloud/fix/9693/move_logcondition_up
Fetch logcondition earlier
Diffstat (limited to 'lib/private')
-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'];
/**