summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorUrban Müller2015-09-17 16:05:51 +0200
committerUrban Müller2015-09-17 16:05:51 +0200
commit007ac6313b90e25faadcaf7d3952daa442f4b66b (patch)
tree67a1da25f60577c3f2c34af5dc7476a27923a798 /it.class
parent5c56d816dd3eb16e8ecdabd100643a5f396fd46a (diff)
downloaditools-007ac6313b90e25faadcaf7d3952daa442f4b66b.tar.gz
itools-007ac6313b90e25faadcaf7d3952daa442f4b66b.tar.bz2
itools-007ac6313b90e25faadcaf7d3952daa442f4b66b.zip
allow structured data in body
Diffstat (limited to 'it.class')
-rw-r--r--it.class1
1 files changed, 1 insertions, 0 deletions
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']);