From c7e22a97580ad31fd19182d2d0ebfa4095087d48 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 15 May 2023 16:21:58 +0200 Subject: fix stack trace depth, remove outdated comment --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3