diff options
-rw-r--r-- | it.class | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -175,7 +175,7 @@ static function error($p = array()) 'graceperiod' => 60, 'timewindow' => 25*3600, 'backtraceskip' => 1, - 'blockmail' => 3600, + 'blockmail' => $p['okstate'] ? 60 : 3600, 'omitdebuginfo' => false, 'failcount' => 2, 'id' => $p['timewindow'] ? "it_error_id_" . it_debug::backtrace(['skipfiles' => "it.class", 'levels' => 1]) : 0, @@ -193,7 +193,7 @@ static function error($p = array()) list($okfn, $okstatus) = explode("=", "/tmp/alertdata/okstate_" . $p['okstate']); $failcount = $okstatus ? 0 : (int)@file_get_contents($okfn) + 1; file_put_contents($okfn, "$failcount\n"); - if ($failcount != $p['failcount']) + if ($failcount != $p['failcount'] && $failcount != $p['failcount'] * 2) return; } |