diff options
author | Urban Müller | 2017-08-23 17:40:17 +0200 |
---|---|---|
committer | Urban Müller | 2017-08-23 17:40:17 +0200 |
commit | a0bc3ed10e352bc1e95859869ef0866f32f0c843 (patch) | |
tree | 313ec4e4327158d28d8a32c138e239b7c766441e /it.class | |
parent | 305a37b61ff3b003681e25fabca4b4af008edee6 (diff) | |
download | itools-a0bc3ed10e352bc1e95859869ef0866f32f0c843.tar.gz itools-a0bc3ed10e352bc1e95859869ef0866f32f0c843.tar.bz2 itools-a0bc3ed10e352bc1e95859869ef0866f32f0c843.zip |
always provide trace for error grepping
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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) { |