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

Changeset 1030

Show
Ignore:
Timestamp:
03/29/06 07:47:06
Author:
lawouach
Message:

Fixed ticket #450

M _cputil.py

Files:

Legend:

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

    r1021 r1030  
    109109    """ Default method for logging access """ 
    110110     
    111     tmpl = '%(h)s %(l)s %(u)s [%(t)s] "%(r)s" %(s)s %(b)s
     111    tmpl = '%(h)s %(l)s %(u)s [%(t)s] "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"
    112112    s = tmpl % {'h': cherrypy.request.remoteHost, 
    113113                'l': '-', 
     
    117117                's': cherrypy.response.status.split(" ", 1)[0], 
    118118                'b': cherrypy.response.headers.get('Content-Length', '') or "-", 
     119                'f': cherrypy.request.headers.get('referer', ''), 
     120                'a': cherrypy.request.headers.get('user-agent', ''), 
    119121                } 
    120122     

Hosted by WebFaction

Log in as guest/cpguest to create tickets