summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-02-27 10:45:35 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-02-27 10:45:35 +0100
commit6994bce951dd9d1d57b6e8c003f9f3cab16f47d0 (patch)
tree124c518cdcf0ace51a33b4090409345dfeaccc35 /lib/private
parent83eb548d23dff78571b8ba827566ed33cdfa985e (diff)
downloadnextcloud-server-6994bce951dd9d1d57b6e8c003f9f3cab16f47d0.tar.gz
nextcloud-server-6994bce951dd9d1d57b6e8c003f9f3cab16f47d0.zip
Loglevel is an int
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Log.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Log.php b/lib/private/Log.php
index a18b5db7d09..e47f68807d3 100644
--- a/lib/private/Log.php
+++ b/lib/private/Log.php
@@ -245,12 +245,12 @@ class Log implements ILogger {
/**
* Logs with an arbitrary level.
*
- * @param mixed $level
+ * @param int $level
* @param string $message
* @param array $context
* @return void
*/
- public function log($level, string $message, array $context = []) {
+ public function log(int $level, string $message, array $context = []) {
$minLevel = min($this->config->getValue('loglevel', Util::WARN), Util::FATAL);
$logCondition = $this->config->getValue('log.condition', []);