From 41a84c0cdbe50648b1e1a3f629d61d5ff28a304c Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Fri, 5 Apr 2024 15:23:52 +0200 Subject: prevent Log: lines in shell mode --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it.class') diff --git a/it.class b/it.class index bc28aff..171b380 100644 --- a/it.class +++ b/it.class @@ -279,7 +279,7 @@ static function error($p = array(), $extra = null) ($p['omitdebuginfo'] >= 2 ? "" : ($url && !$toscreen? "Title: {$p['title']}\nUrl: $url\n" : "") . ($traceline ? ($sendmail ? "" : " ") . "Trace: $traceline\n" : "")) . (!$sendmail || $p['omitdebuginfo'] >= 2 ? "" : "Host: " . getenv('HOSTNAME') . " at " . date("Y-m-d H:i:s") . (($t = time() - $_SERVER['REQUEST_TIME']) ? " (invoked {$t}s before)" : "") . " id $mailid\n") . # no it::date() due to time- debug param - ($sendmail && it::is_live() ? "Log: see $service/log/alertlog $mailid" : "") . + ($sendmail && it::is_live() && $p['omitdebuginfo'] < 2 ? "Log: see $service/log/alertlog $mailid" : "") . ($sendmail ? $p['head'] : "") . ($p['id'] && !$toscreen ? "Filter: timewindow=" . $p['graceperiod'] . "-" . ($p['graceperiod'] + $p['timewindow']) . " (previous err: " . it::date('', $errstamp) . ")\n" : "") . (!$origp['blockmail'] || $p['omitdebuginfo'] || $toscreen ? "" : "Block-resend: " . $origp['blockmail'] . " seconds\n") . -- cgit v1.2.3