1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2024-11-29 00:24:13 +01:00

Timestamp requests.

This commit is contained in:
Simon Josefsson 2010-08-22 13:27:46 +00:00
parent 81255ecf24
commit 069092fd6b
2 changed files with 5 additions and 2 deletions

3
NEWS
View File

@ -1,5 +1,8 @@
* Version 2.7 unreleased
* Record complete timestamp when request is received
(syslog doesn't record year nor sub-second resolution).
* Version 2.6 released 2010-08-02
* Don't use rowCount in ykval-revoke, there seems to be some problem

View File

@ -9,8 +9,8 @@ header("content-type: text/plain");
$myLog = new Log('ykval-verify');
$myLog->addField('ip', $_SERVER['REMOTE_ADDR']);
$myLog->log(LOG_INFO, "Request: " . $_SERVER['QUERY_STRING']);
$myLog->log(LOG_INFO, "Request: " . $_SERVER['QUERY_STRING'] .
" (at " . date("c") . " " . microtime() . ")");
/* Detect protocol version */
if (preg_match("/\/wsapi\/([0-9]+)\.([0-9]+)\//", $_SERVER['REQUEST_URI'], $out)) {