Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Napoli <matthieu@mnapoli.fr>2015-03-31 01:49:33 +0300
committerMatthieu Napoli <matthieu@mnapoli.fr>2015-03-31 01:49:33 +0300
commitfe073b63f80017894a93f58388ae33d0b17cf3a3 (patch)
tree26404ef10a2f1cf61e7686da2a79086ee1af3e23 /core/Log.php
parent7cb03a656c54c9ce40dfd09608b905a2f53f008b (diff)
Fixes #7581 logger can now log int and bools
Diffstat (limited to 'core/Log.php')
-rw-r--r--core/Log.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Log.php b/core/Log.php
index 82f2beab66..3c3901f925 100644
--- a/core/Log.php
+++ b/core/Log.php
@@ -210,9 +210,9 @@ class Log extends Singleton
$message = $message->getMessage();
}
- if (! is_string($message)) {
+ if (is_object($message) || is_array($message) || is_resource($message)) {
$this->logger->warning('Trying to log a message that is not a string', array(
- 'exception' => new \InvalidArgumentException
+ 'exception' => new \InvalidArgumentException('Trying to log a message that is not a string')
));
return;
}