From 2c587d8efa0ad426ee7fab622c5dbe7bca00c351 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 8 Jan 2018 11:59:51 +0100 Subject: handle structured body --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it.class b/it.class index 3a36510..5553d33 100644 --- a/it.class +++ b/it.class @@ -290,7 +290,7 @@ static function error($p = array()) if ($_SERVER['REMOTE_ADDR']) # additional entry in log/error_log error_log("it::error: " . $p['title'] . " Url: $url"); - it::log("/tmp/alertdata/alertlog", $p['title'] . " in " . ($trace ? $trace : "{$p['file']}:{$p['line']}") . " Url: $url" . ($p['body'] ? "\n" . substr($p['body'], 0, 5000) . "\n" : "")); + it::log("/tmp/alertdata/alertlog", $p['title'] . " in " . ($trace ? $trace : "{$p['file']}:{$p['line']}") . " Url: $url" . ($p['body'] ? "\n" . substr(D($p['body']), 0, 5000) . "\n" : "")); if ($p['fatal']) exit(99); -- cgit v1.2.3