summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorUrban Müller2020-09-16 15:10:34 +0200
committerUrban Müller2020-09-16 15:10:34 +0200
commitafe4dee143346d72275a7b67a9e75c800a8027fe (patch)
treea215152fc7ab799f109449110fc24596530a5b97 /it.class
parent5359b07a5c61588c680894c9c5ddc7aa47deb275 (diff)
downloaditools-afe4dee143346d72275a7b67a9e75c800a8027fe.tar.gz
itools-afe4dee143346d72275a7b67a9e75c800a8027fe.tar.bz2
itools-afe4dee143346d72275a7b67a9e75c800a8027fe.zip
use error_context for mails only
Diffstat (limited to 'it.class')
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index 45cc2cb..ba936ad 100644
--- a/it.class
+++ b/it.class
@@ -260,7 +260,7 @@ static function error($p = array())
($p['omitdebuginfo'] >= 2 ? "" : ($url && !$toscreen? "Title: {$p['title']}\nUrl: $url\n" : "") .
($trace ? ($sendmail ? "" : " ") . "Trace: $trace\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)" : "") . "\n") . # no it::date() due to time- debug param
- self::$error_context .
+ ($sendmail ? self::$error_context : "") .
($p['id'] ? "Filter: timewindow=" . $p['graceperiod'] . "-" . ($p['graceperiod'] + $p['timewindow']) . " (previous err: " . it::date('', $errstamp) . ")\n" : "") .
(!$origp['blockmail'] || $p['omitdebuginfo'] ? "" : "Block-resend: " . $origp['blockmail'] . " seconds\n") .
($p['body'] ? ($p['omitdebuginfo'] ? "" : "Body:\n") . trim($p['body'])."\n\n" : "");