Merge pull request #50460 from nextcloud/backport/50455/stable30

[stable30] fix(log): Fix log level handling
This commit is contained in:
Ferdinand Thiessen 2025-01-27 12:15:19 +01:00 committed by GitHub
commit 458856b2f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -275,6 +275,7 @@ class Log implements ILogger, IDataLogger {
if (!isset($logCondition['matches'])) {
$configLogLevel = $this->config->getValue('loglevel', ILogger::WARN);
if (is_numeric($configLogLevel)) {
$this->nestingLevel--;
return min((int)$configLogLevel, ILogger::FATAL);
}