Merge pull request #10451 from nextcloud/fix/9693/move_logcondition_up
Fetch logcondition earlier
This commit is contained in:
commit
1f610b4d1f
|
@ -220,6 +220,8 @@ class Log implements ILogger {
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getLogLevel($context) {
|
private function getLogLevel($context) {
|
||||||
|
$logCondition = $this->config->getValue('log.condition', []);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* check for a special log condition - this enables an increased log on
|
* check for a special log condition - this enables an increased log on
|
||||||
* a per request/user base
|
* a per request/user base
|
||||||
|
@ -265,7 +267,6 @@ class Log implements ILogger {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($context['app'])) {
|
if (isset($context['app'])) {
|
||||||
$logCondition = $this->config->getValue('log.condition', []);
|
|
||||||
$app = $context['app'];
|
$app = $context['app'];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue