From 8cdd134e7ecc9dd67ffd88e5bd28e41fb7b60a1b Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Mon, 30 Jul 2018 14:57:19 +0200 Subject: [PATCH] Fetch logcondition earlier Fixes #9693 Signed-off-by: Roeland Jago Douma --- lib/private/Log.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/private/Log.php b/lib/private/Log.php index 4170acbb69..33d1ddcdc3 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']; /**