show the client's ip in the apache-style log

svn: r12558
This commit is contained in:
Eli Barzilay 2008-11-21 08:27:14 +00:00
parent cacdcc55ac
commit 370ec9b8e9

View File

@ -45,7 +45,7 @@
(define (apache-default-format req)
(define request-time (srfi-date:current-date))
(format "~a - - [~a] \"~a\" ~a ~a~n"
(request-host-ip req)
(request-client-ip req)
(srfi-date:date->string request-time "~d/~b/~Y:~T ~z")
(request-line-raw req)
200