From fef23c83eee11773b8e9ae97236cf6ef382855de Mon Sep 17 00:00:00 2001 From: Olivier Paroz Date: Wed, 7 Jan 2015 21:47:31 +0100 Subject: Got worse, revert --- utility/smarterlogger.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'utility') diff --git a/utility/smarterlogger.php b/utility/smarterlogger.php index 19a18c94..261793ac 100644 --- a/utility/smarterlogger.php +++ b/utility/smarterlogger.php @@ -188,11 +188,11 @@ class SmarterLogger implements ILogger { return $this->normalizeTraversable($data); } - if (is_object($data) && $data instanceof \Exception) { - return $this->normalizeException($data); - } - if (is_object($data)) { + if ($data instanceof \Exception) { + return $this->normalizeException($data); + } + return $this->normalizeObject($data); } -- cgit v1.2.3