diff --git a/lib/private/Log.php b/lib/private/Log.php index e2b732473c2d4..d7283b53a430c 100644 --- a/lib/private/Log.php +++ b/lib/private/Log.php @@ -275,6 +275,7 @@ public function getLogLevel(array $context, string $message): int { if (!isset($logCondition['matches'])) { $configLogLevel = $this->config->getValue('loglevel', ILogger::WARN); if (is_numeric($configLogLevel)) { + $this->nestingLevel--; return min((int)$configLogLevel, ILogger::FATAL); }