summaryrefslogtreecommitdiff
path: root/include/errorhandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/errorhandler.php')
-rw-r--r--include/errorhandler.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/errorhandler.php b/include/errorhandler.php
index 16afcabcf..3643db98a 100644
--- a/include/errorhandler.php
+++ b/include/errorhandler.php
@@ -11,11 +11,11 @@ function format_backtrace($trace) {
if (is_array($e["args"])) {
foreach ($e["args"] as $a) {
if (is_object($a)) {
- array_push($fmt_args, "[" . get_class($a) . "]");
+ array_push($fmt_args, "{" . get_class($a) . "}");
} else if (is_array($a)) {
- array_push($fmt_args, "[" . truncate_string(json_encode($a), 128, "...")) . "]";
+ array_push($fmt_args, "[" . truncate_string(json_encode($a), 256, "...")) . "]";
} else {
- array_push($fmt_args, $a);
+ array_push($fmt_args, truncate_string($a, 256, "..."));
}
}
}