summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2017-08-23 17:40:17 +0200
committerUrban Müller2017-08-23 17:40:17 +0200
commita0bc3ed10e352bc1e95859869ef0866f32f0c843 (patch)
tree313ec4e4327158d28d8a32c138e239b7c766441e
parent305a37b61ff3b003681e25fabca4b4af008edee6 (diff)
downloaditools-a0bc3ed10e352bc1e95859869ef0866f32f0c843.tar.gz
itools-a0bc3ed10e352bc1e95859869ef0866f32f0c843.tar.bz2
itools-a0bc3ed10e352bc1e95859869ef0866f32f0c843.zip
always provide trace for error grepping
-rw-r--r--it.class3
1 files changed, 1 insertions, 2 deletions
diff --git a/it.class b/it.class
index 2d233e6..5246336 100644
--- a/it.class
+++ b/it.class
@@ -174,6 +174,7 @@ static function error($p = array())
if (it::match('-', $p['timewindow']) && ($parts = explode("-", $p['timewindow'])))
list($p['graceperiod'], $p['timewindow']) = [$parts[0], $parts[1] - $parts[0]];
$p += array('blockmailid' => $GLOBALS['ULTRASITE'] . "." . md5($p['to']));
+ $trace = it_debug::backtrace(array('skiplevels' => $p['backtraceskip'], 'skipfiles' => $p['skipfiles'])); # moved in here for performance in mass error case
@mkdir("/tmp/alertdata");
@chmod("/tmp/alertdata", 0777);
@@ -224,8 +225,6 @@ static function error($p = array())
if ($toscreen || $sendmail)
{
- $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']) || !array_key_exists('body', $p) ? $p['body'] : var_export($p['body'], true);
if (strlen($p['body']) > 500000)
{