Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 559

Show
Ignore:
Timestamp:
08/26/05 19:02:21
Author:
fumanchu
Message:

Stage 2 fix for ticket #257: access messages are only printed to the error.log if access.log is not defined. This should allow smooth migration to 2.1, and that block can be removed for 2.2.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/_cphttptools.py

    r558 r559  
    354354                req.simpleCookie.load(value) 
    355355         
    356         msg = "%s - %s" % (req.remoteAddr, req.requestLine) 
    357         cherrypy.log(msg, "HTTP") 
     356        # Write a message to the error.log only if there is no access.log. 
     357        # This is only here for backwards-compatibility (with the time 
     358        # before the access.log existed), and should be removed in CP 2.2. 
     359        fname = cherrypy.config.get('server.logAccessFile', '') 
     360        if not fname: 
     361            msg = "%s - %s" % (req.remoteAddr, req.requestLine) 
     362            cherrypy.log(msg, "HTTP") 
    358363         
    359364        # Save original values (in case they get modified by filters) 

Hosted by WebFaction

Log in as guest/cpguest to create tickets