Hi,

it was

            line = '%s - - %s "%s" %d %s "%s" "%s"\n' % (

in 13.2.0 (twisted/web/http.py line 1920), and it's

        u'"%(ip)s" - - %(timestamp)s "%(method)s %(uri)s %(protocol)s" '

so basically the client IP now gets wrapped within double quotes, e.g. a
log line that was looking like:

1.2.3.4 - - [25/Oct/2004:12:31:59 +0000] "GET /dummy HTTP/1.0" 123 - "-" "-"

it now looks like:

"1.2.3.4" - - [25/Oct/2004:12:31:59 +0000] "GET /dummy HTTP/1.0" 123 - "-"
"-"

as one can see in the unit tests in test_web.py too.

What's the reason for this change?

It feels it can potentially break code that parses log files and it also
seems to diverge from the format described on the Apache web site:

http://httpd.apache.org/docs/1.3/logs.html

Cheers,

Free
_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to