diff options
author | Urban Müller | 2017-04-06 23:14:05 +0200 |
---|---|---|
committer | Urban Müller | 2017-04-06 23:14:05 +0200 |
commit | 8c786342fd30ac02f3cba9150d78a3864fefce48 (patch) | |
tree | cd00eb056576143e2842e3cfa7d3d8148fb77cc4 /it.class | |
parent | 2672253419813f6457366a66aaf93faea48f43f6 (diff) | |
download | itools-8c786342fd30ac02f3cba9150d78a3864fefce48.tar.gz itools-8c786342fd30ac02f3cba9150d78a3864fefce48.tar.bz2 itools-8c786342fd30ac02f3cba9150d78a3864fefce48.zip |
use real time, not the one set by time- debug param
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -240,7 +240,7 @@ static function error($p = array()) $body .= "Host: " . getenv('HOSTNAME') . "\n\n"; $body .= $p['id'] ? "Filter: graceperiod={$p['graceperiod']} timewindow={$p['timewindow']}\n\n" : ""; - $body .= "Time: " . it::date() . "\n\n"; + $body .= "Time: " . date("Y-m-d H:i:s") . "\n\n"; # no it::date() because of time- debug param $body .= $_GET ? "\$_GET: " . var_export($_GET, true) . "\n\n" : ""; $body .= $_POST ? "\$_POST: " . var_export($_POST, true) . "\n\n" : ""; $body .= $_COOKIE ? "\$_COOKIE: " . var_export($_COOKIE, true) . "\n\n" : ""; @@ -261,7 +261,7 @@ static function error($p = array()) if ($_SERVER['REMOTE_ADDR']) # additional entry in log/error_log error_log("it::error: " . $p['title'] . " Url: $url"); - file_put_contents("/tmp/alertdata/alert.log", it::date() . " " . $p['title'] . " in " . ($trace ? $trace : "{$p['file']}:{$p['line']}") . " Url: $url\n", FILE_APPEND); + file_put_contents("/tmp/alertdata/alert.log", date("Y-m-d H:i:s") . " " . $p['title'] . " in " . ($trace ? $trace : "{$p['file']}:{$p['line']}") . " Url: $url\n", FILE_APPEND); @chmod("/tmp/alertdata/alert.log", 0777); return null; |