diff options
author | Urban Müller | 2022-02-14 16:58:39 +0100 |
---|---|---|
committer | Urban Müller | 2022-02-14 16:58:39 +0100 |
commit | 9f8eb21d144b9c753b96bb65d73e692089b19d74 (patch) | |
tree | 646c04dedf05d968ee366a06c9d2498e7151694f /it.class | |
parent | 485cfaf74d64584f76eab0758b11ab95ccf72fc7 (diff) | |
download | itools-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.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |