diff options
author | Urban Müller | 2015-09-17 16:05:51 +0200 |
---|---|---|
committer | Urban Müller | 2015-09-17 16:05:51 +0200 |
commit | 007ac6313b90e25faadcaf7d3952daa442f4b66b (patch) | |
tree | 67a1da25f60577c3f2c34af5dc7476a27923a798 | |
parent | 5c56d816dd3eb16e8ecdabd100643a5f396fd46a (diff) | |
download | itools-007ac6313b90e25faadcaf7d3952daa442f4b66b.tar.gz itools-007ac6313b90e25faadcaf7d3952daa442f4b66b.tar.bz2 itools-007ac6313b90e25faadcaf7d3952daa442f4b66b.zip |
allow structured data in body
-rw-r--r-- | it.class | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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']); |