[Zope] Problem with http-logging in Zope 2.6.1

Charlie Clark charlie at begeistert.org
Thu Sep 4 14:27:02 EDT 2003


Hi,

I've noticed there is a problem with the http-server log in Zope 2.6.1. 
I've also noticed I'm not the first to notice this. 2.6 betas seem to 
contain the fix but I'm loathe to update my productive system. I've traced 
the error medusa/http_server. Is is correct simply to remove the offending 
double space in the logging string?

ie.
self.channel.server.logger.log (
            self.channel.addr[0],
            ' - %s [%s] "%s" %d %d "%s" "%s"\n' % (
                name,
                self.log_date_string (time.time()),
                self.request,
                self.reply_code,
                bytes,
                referer,
                user_agent
                )
            )           

becomes 

self.channel.server.logger.log (
            self.channel.addr[0],
            '- %s [%s] "%s" %d %d "%s" "%s"\n' % (
                name,
                self.log_date_string (time.time()),
                self.request,
                self.reply_code,
                bytes,
                referer,
                user_agent
                )
            )           

Thanx very much

Charlie Clark



More information about the Zope mailing list