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

Changeset 2440

Show
Ignore:
Timestamp:
06/14/09 18:12:28
Author:
fumanchu
Message:

Use new response.output_status for access log.

Files:

Legend:

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

    r2285 r2440  
    7878        outheaders = response.headers 
    7979        inheaders = request.headers 
     80        if response.output_status is None: 
     81            status = "-" 
     82        else: 
     83            status = response.output_status.split(" ", 1)[0] 
    8084         
    8185        atoms = {'h': remote.name or remote.ip, 
     
    8488                 't': self.time(), 
    8589                 'r': request.request_line, 
    86                  's': response.status.split(" ", 1)[0]
     90                 's': status
    8791                 'b': outheaders.get('Content-Length', '') or "-", 
    8892                 'f': inheaders.get('Referer', ''), 

Hosted by WebFaction

Log in as guest/cpguest to create tickets