fix(log): Fix log level handling

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2025-01-27 05:05:17 +01:00
parent 29724ff27e
commit 0ba2913a95
No known key found for this signature in database
GPG key ID: F72FA5B49FFA96B0

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);
}