diff --git a/lib/private/Log.php b/lib/private/Log.php index 55e41134692b9..746e4d75b91be 100644 --- a/lib/private/Log.php +++ b/lib/private/Log.php @@ -271,6 +271,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); }