diff --git a/models/ErrorHandler.php b/models/ErrorHandler.php index 74ca39c..8e55c57 100644 --- a/models/ErrorHandler.php +++ b/models/ErrorHandler.php @@ -100,10 +100,12 @@ class ErrorHandler { foreach ($call['args'] as $j => $arg) { - if (is_array($arg)) - $args[$j] = print_r($arg, true); - elseif (is_object($arg)) - $args[$j] = var_dump($arg); + // Only include the class name for objects + if (is_object($arg)) + $args[$j] = get_class($arg) . '{}'; + // Export everything else -- including arrays + else + $args[$j] = var_export($arg, true); } }