diff options
author | Urban Müller | 2023-05-15 16:21:58 +0200 |
---|---|---|
committer | Urban Müller | 2023-05-15 16:21:58 +0200 |
commit | c7e22a97580ad31fd19182d2d0ebfa4095087d48 (patch) | |
tree | 60cb0a9c2735d82e3406d2994812353d104663d5 | |
parent | 253e52e2d886a507654baf00063afe1114e0eb4d (diff) | |
download | itools-c7e22a97580ad31fd19182d2d0ebfa4095087d48.tar.gz itools-c7e22a97580ad31fd19182d2d0ebfa4095087d48.tar.bz2 itools-c7e22a97580ad31fd19182d2d0ebfa4095087d48.zip |
fix stack trace depth, remove outdated comment
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |