summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorUrban Müller2022-02-14 16:58:39 +0100
committerUrban Müller2022-02-14 16:58:39 +0100
commit9f8eb21d144b9c753b96bb65d73e692089b19d74 (patch)
tree646c04dedf05d968ee366a06c9d2498e7151694f /it.class
parent485cfaf74d64584f76eab0758b11ab95ccf72fc7 (diff)
downloaditools-9f8eb21d144b9c753b96bb65d73e692089b19d74.tar.gz
itools-9f8eb21d144b9c753b96bb65d73e692089b19d74.tar.bz2
itools-9f8eb21d144b9c753b96bb65d73e692089b19d74.zip
use D() formatting for it::error body
Diffstat (limited to 'it.class')
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index 2b582f7..dfefb8d 100644
--- a/it.class
+++ b/it.class
@@ -258,7 +258,7 @@ static function error($p = array(), $extra = null)
if ($toscreen || $sendmail)
{
- $p['body'] = is_string($p['body']) || !array_key_exists('body', $p) ? $p['body'] : var_export($p['body'], true);
+ $p['body'] = is_string($p['body']) || !array_key_exists('body', $p) ? $p['body'] : it_debug::dump([$p['body']], ['html' => false, 'short' => true, 'color' => false]);
if (strlen($p['body']) > 500000 || it::match('[\x00-\x08\x0E-\x1F]', $p['body'], ['utf8' => false]) !== null)
{
file_put_contents($datafn = "/tmp/alertdata/error-" . substr(md5($p['body']), 0, 2), $p['body']); # NOPHPLINT