Added timestamps to server log.

This commit is contained in:
Emilis Dambauskas 2020-12-01 03:39:59 +02:00
parent 2541614b79
commit 02f78e9437
1 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,9 @@
BEGIN {
debug( REMOTE_ADDR " " REQUEST_FULL_URL );
debug( \
exec_to_string( "date -Iseconds" ) \
" " REMOTE_ADDR \
" " REQUEST_FULL_URL \
);
_REQUEST_NO_PROTOCOL = str_replace( "[^:]+:\\/\\/", "", REQUEST_FULL_URL );
REQUEST_URI = str_replace( "[^/]+\\/?", "/", _REQUEST_NO_PROTOCOL );