From 007ac6313b90e25faadcaf7d3952daa442f4b66b Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 17 Sep 2015 16:05:51 +0200 Subject: allow structured data in body --- it.class | 1 + 1 file changed, 1 insertion(+) (limited to 'it.class') diff --git a/it.class b/it.class index 05efbee..7416f81 100644 --- a/it.class +++ b/it.class @@ -204,6 +204,7 @@ static function error($p = array()) { $trace = it_debug::backtrace(array('skiplevels' => $p['backtraceskip'], 'skipfiles' => $p['skipfiles'])); # moved in here for performance in mass error case + $p['body'] = is_string($p['body']) ? $p['body'] : var_export($p['body'], true); if (strlen($p['body']) > 500000) { file_put_contents($datafn = "/tmp/alertdata/error-" . substr(md5($p['body']), 0, 2), $p['body']); -- cgit v1.2.3