diff options
| author | Andrew Dolgov <noreply@fakecake.org> | 2021-02-06 10:10:54 +0300 |
|---|---|---|
| committer | Andrew Dolgov <noreply@fakecake.org> | 2021-02-06 10:10:54 +0300 |
| commit | 10392ecc285871b3f0866370bea11c18693d6a2c (patch) | |
| tree | e125369271fff6c4be0b6f672e28c55b03633d3b /include/errorhandler.php | |
| parent | 9fdeb58fd39fb24aafebd67ad88f58be12b8ce7d (diff) | |
event log: add pagination
Diffstat (limited to 'include/errorhandler.php')
| -rw-r--r-- | include/errorhandler.php | 6 |
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, "...")); } } } |