BUG 6843 - Noew the date is stored in the log

This commit is contained in:
Julio Cesar Laura
2011-10-19 12:27:56 -04:00
committed by Erik Amaru Ortiz
parent 93d9f365f5
commit 29dc5beced

View File

@@ -30,7 +30,7 @@ $startingTime = array_sum(explode(' ',microtime()));
$endTime = array_sum(explode(' ',microtime()));
$time = $endTime - $startingTime;
$fpt= fopen ( PATH_DATA . 'log/time.log', 'a' );
fwrite( $fpt, sprintf ( "%s.%03d %15s %s %5.3f %s\n", date('H:i:s'), $time, getenv('REMOTE_ADDR'), substr($serverAddr,-4), $time, $_SERVER['REQUEST_URI'] ));
fwrite( $fpt, sprintf ( "%s.%03d %15s %s %5.3f %s\n", date('Y-m-d H:i:s'), $time, getenv('REMOTE_ADDR'), substr($serverAddr,-4), $time, $_SERVER['REQUEST_URI'] ));
fclose( $fpt);
}