Skip to content

Commit

Permalink
Fetch logcondition earlier
Browse files Browse the repository at this point in the history
Fixes #9693

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
  • Loading branch information
rullzer committed Jul 30, 2018
1 parent b1af610 commit 8cdd134
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/private/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ public function log(int $level, string $message, array $context = []) {
}

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
Expand Down Expand Up @@ -265,7 +267,6 @@ private function getLogLevel($context) {
}

if (isset($context['app'])) {
$logCondition = $this->config->getValue('log.condition', []);
$app = $context['app'];

/**
Expand Down

0 comments on commit 8cdd134

Please sign in to comment.