diff options
author | Olivier Paroz <github@oparoz.com> | 2015-01-07 23:47:31 +0300 |
---|---|---|
committer | Olivier Paroz <github@oparoz.com> | 2015-01-07 23:47:31 +0300 |
commit | fef23c83eee11773b8e9ae97236cf6ef382855de (patch) | |
tree | ed8d1c7c720c11b34257ccfe43fc02955c46e720 /utility | |
parent | ad2c32606322c4f7f93f047f5cdea3277f597b6c (diff) |
Got worse, revert
Diffstat (limited to 'utility')
-rw-r--r-- | utility/smarterlogger.php | 8 |
1 files changed, 4 insertions, 4 deletions
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); } |