diff options
author | skjnldsv <skjnldsv@protonmail.com> | 2024-03-17 14:09:13 +0100 |
---|---|---|
committer | skjnldsv <skjnldsv@protonmail.com> | 2024-03-17 14:09:13 +0100 |
commit | a47a70790ca085bcc08cdb050785190a295a8be6 (patch) | |
tree | 7209b60923014681b95c22a1baf784c64708afb8 /lib/private/Log.php | |
parent | 8b4864fcade6a43e72bc6fb6540790885534b691 (diff) | |
download | nextcloud-server-a47a70790ca085bcc08cdb050785190a295a8be6.tar.gz nextcloud-server-a47a70790ca085bcc08cdb050785190a295a8be6.zip |
fix: getLogLevel return type
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Diffstat (limited to 'lib/private/Log.php')
-rw-r--r-- | lib/private/Log.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/Log.php b/lib/private/Log.php index d2bf8e40e77..ddccf87e073 100644 --- a/lib/private/Log.php +++ b/lib/private/Log.php @@ -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); } /** |