diff options
Diffstat (limited to 'core/Log.php')
-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; } |