diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-03-31 01:49:33 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-03-31 01:49:33 +0300 |
commit | fe073b63f80017894a93f58388ae33d0b17cf3a3 (patch) | |
tree | 26404ef10a2f1cf61e7686da2a79086ee1af3e23 /core | |
parent | 7cb03a656c54c9ce40dfd09608b905a2f53f008b (diff) |
Fixes #7581 logger can now log int and bools
Diffstat (limited to 'core')
-rw-r--r-- | core/Log.php | 4 |
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; } |