summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2024-04-05 15:23:52 +0200
committerUrban Müller2024-04-05 15:23:52 +0200
commit41a84c0cdbe50648b1e1a3f629d61d5ff28a304c (patch)
treebfec656a89616598ff15b6ec5c961ea72e868590
parent55b71ecd6a648c0df10b7740f4b3c7bfe4caa083 (diff)
downloaditools-41a84c0cdbe50648b1e1a3f629d61d5ff28a304c.tar.gz
itools-41a84c0cdbe50648b1e1a3f629d61d5ff28a304c.tar.bz2
itools-41a84c0cdbe50648b1e1a3f629d61d5ff28a304c.zip
prevent Log: lines in shell mode
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
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") .