[Zope] Z2.log error
Jamie Heilman
jamie@audible.transient.net
Thu, 27 Feb 2003 01:24:13 -0800
> I found that AwStats can't be used with my current Z2.log because of an
> extra space in the log file
>
> 127.0.0.1 - Anonymous [27/Feb/2003:09:30:04 +0200]
> ^^ (2 spaced instead of 1)
>
> Does anyone know where to find the code to patch my Zope
from the cvs log of file ZServer/medusa/http_server.py:
revision 1.34
date: 2003/02/24 09:38:46; author: andreasjung; state: Exp; lines: +2 -2
- Fixed a whitespace problem in Z2.log (AWStats failed to process
Zope logfiles)
the diff reveals:
--- http_server.py 20 Jun 2002 14:39:34 -0000 1.33
+++ http_server.py 24 Feb 2003 09:38:46 -0000 1.34
@@ -289,7 +289,7 @@
self.channel.server.logger.log (
self.channel.addr[0],
- ' - %s [%s] "%s" %d %d "%s" "%s"\n' % (
+ '- %s [%s] "%s" %d %d "%s" "%s"\n' % (
name,
self.log_date_string (time.time()),
self.request,
--
Jamie Heilman http://audible.transient.net/~jamie/
"Most people wouldn't know music if it came up and bit them on the ass."
-Frank Zappa