Merge pull request #10451 from nextcloud/fix/9693/move_logcondition_up

Fetch logcondition earlier
This commit is contained in:
Roeland Jago Douma 2018-07-30 22:07:06 +02:00 committed by GitHub
commit 1f610b4d1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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