Fetch logcondition earlier

Fixes #9693

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2018-07-30 14:57:19 +02:00
parent b1af610069
commit 8cdd134e7e
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 2 additions and 1 deletions

View File

@ -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'];
/**