diff options
author | Urban Müller | 2024-04-05 15:23:52 +0200 |
---|---|---|
committer | Urban Müller | 2024-04-05 15:23:52 +0200 |
commit | 41a84c0cdbe50648b1e1a3f629d61d5ff28a304c (patch) | |
tree | bfec656a89616598ff15b6ec5c961ea72e868590 | |
parent | 55b71ecd6a648c0df10b7740f4b3c7bfe4caa083 (diff) | |
download | itools-41a84c0cdbe50648b1e1a3f629d61d5ff28a304c.tar.gz itools-41a84c0cdbe50648b1e1a3f629d61d5ff28a304c.tar.bz2 itools-41a84c0cdbe50648b1e1a3f629d61d5ff28a304c.zip |
prevent Log: lines in shell mode
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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") . |