From 10392ecc285871b3f0866370bea11c18693d6a2c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 6 Feb 2021 10:10:54 +0300 Subject: event log: add pagination --- include/errorhandler.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/errorhandler.php') 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, "...")); } } } -- cgit v1.2.3