mirror of
https://github.com/nextcloud/server.git
synced 2026-04-23 07:08:34 -04:00
Merge pull request #44258 from nextcloud/fix/log_level
fix: getLogLevel return type
This commit is contained in:
commit
575fb8d7a6
1 changed files with 2 additions and 1 deletions
|
|
@ -281,7 +281,8 @@ class Log implements ILogger, IDataLogger {
|
|||
}
|
||||
}
|
||||
|
||||
return min($this->config->getValue('loglevel', ILogger::WARN) ?? ILogger::WARN, ILogger::FATAL);
|
||||
$configLogLevel = $this->config->getValue('loglevel', ILogger::WARN);
|
||||
return min(is_int($configLogLevel) ? $configLogLevel : ILogger::WARN, ILogger::FATAL);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue