diff options
author | Urban Müller | 2017-08-23 16:50:33 +0200 |
---|---|---|
committer | Urban Müller | 2017-08-23 16:50:33 +0200 |
commit | 305a37b61ff3b003681e25fabca4b4af008edee6 (patch) | |
tree | 8cf1ab77374b8752c0c254316ce7685c9ffd81ae /it.class | |
parent | 11f3921d48ca48a9e9da84a4822583a3ca34df43 (diff) | |
download | itools-305a37b61ff3b003681e25fabca4b4af008edee6.tar.gz itools-305a37b61ff3b003681e25fabca4b4af008edee6.tar.bz2 itools-305a37b61ff3b003681e25fabca4b4af008edee6.zip |
indicate runtime
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -250,7 +250,7 @@ static function error($p = array()) $body .= "Host: " . getenv('HOSTNAME') . "\n\n"; $body .= $p['id'] ? "Filter: timewindow=" . $p['graceperiod'] . "-" . ($p['graceperiod'] + $p['timewindow']) . "\n\n" : ""; - $body .= "Time: " . date("Y-m-d H:i:s") . "\n\n"; # no it::date() because of time- debug param + $body .= "Time: " . date("Y-m-d H:i:s") . (($t = time() - $_SERVER['REQUEST_TIME']) ? " (started {$t}s before)" : "") . "\n\n"; # no it::date() due to time- debug param $body .= "Overview: ssh " . getenv('HOSTNAME') . " 'tail -100000 /tmp/alertdata/alert.log | grep \"$trace\"'\n\n"; $body .= $_GET ? "\$_GET: " . var_export($_GET, true) . "\n\n" : ""; $body .= $_POST ? "\$_POST: " . var_export($_POST, true) . "\n\n" : ""; |