From fe073b63f80017894a93f58388ae33d0b17cf3a3 Mon Sep 17 00:00:00 2001 From: Matthieu Napoli Date: Tue, 31 Mar 2015 11:49:33 +1300 Subject: Fixes #7581 logger can now log int and bools --- core/Log.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/Log.php') 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; } -- cgit v1.2.3