fix(log): Fix log level handling

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/50455/head
Joas Schilling 2025-01-27 05:05:17 +07:00
parent 29724ff27e
commit 0ba2913a95
No known key found for this signature in database
GPG Key ID: F72FA5B49FFA96B0
1 changed files with 1 additions and 0 deletions

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