Merge pull request #50461 from nextcloud/backport/50455/stable31

[stable31] fix(log): Fix log level handling
This commit is contained in:
Joas Schilling 2025-01-27 12:18:51 +01:00 committed by GitHub
commit 39cb18de4f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -271,6 +271,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);
}