mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix: getLogLevel return type
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
This commit is contained in:
parent
8b4864fcad
commit
a47a70790c
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