From f2f1f7a8c93c15b55c0fd87c767d09b32bb027b3 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 10 Dec 2007 03:04:36 +0000 Subject: datestamps for alert.log --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it.class b/it.class index cc0de0a..10cede4 100644 --- a/it.class +++ b/it.class @@ -217,7 +217,7 @@ function error($p = array(), $body = null, $to = null) # $body and $to deprecate if (($fh = fopen("/tmp/alertdata/alert.log", "a"))) { - fputs($fh, $p['title'] . " in " . ($trace ? $trace : "{$p['file']}:{$p['line']}") . " Url: $url\n"); + fputs($fh, it::date() . " " . $p['title'] . " in " . ($trace ? $trace : "{$p['file']}:{$p['line']}") . " Url: $url\n"); fclose($fh); @chmod("/tmp/alertdata/alert.log", 0777); } -- cgit v1.2.3