summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2023-05-15 16:21:58 +0200
committerUrban Müller2023-05-15 16:21:58 +0200
commitc7e22a97580ad31fd19182d2d0ebfa4095087d48 (patch)
tree60cb0a9c2735d82e3406d2994812353d104663d5
parent253e52e2d886a507654baf00063afe1114e0eb4d (diff)
downloaditools-c7e22a97580ad31fd19182d2d0ebfa4095087d48.tar.gz
itools-c7e22a97580ad31fd19182d2d0ebfa4095087d48.tar.bz2
itools-c7e22a97580ad31fd19182d2d0ebfa4095087d48.zip
fix stack trace depth, remove outdated comment
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index 8574555..d7a0030 100644
--- a/it.class
+++ b/it.class
@@ -207,7 +207,7 @@ static function error($p = array(), $extra = null)
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'], 'trace' => $p['trace'])); # moved in here for performance in mass error case
+ $trace = it_debug::backtrace(array('skiplevels' => $p['backtraceskip'] + ($p['trace'] ? 0 : 1), 'skipfiles' => $p['skipfiles'], 'trace' => $p['trace']));
@mkdir("/tmp/alertdata");
@chmod("/tmp/alertdata", 0777);