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

Changeset 1100

Show
Ignore:
Timestamp:
05/07/06 17:46:56
Author:
fumanchu
Message:

Moved log_access to a config entry.

Files:

Legend:

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

    r1098 r1100  
    6060         
    6161        """ 
    62         self.log_access = _cputil.log_access 
    6362        self.error_response = cherrypy.HTTPError(500).set_response 
    6463         
     
    8483            cherrypy.response.body = [] 
    8584         
    86         self.log_access() 
     85        log_access = cherrypy.config.get("log_access", _cputil.log_access) 
     86        if log_access: 
     87            log_access() 
    8788         
    8889        return cherrypy.response 
  • trunk/cherrypy/_cpwsgi.py

    r1096 r1100  
    33import sys 
    44import cherrypy 
    5 from cherrypy import _cputil, _cpwsgiserver 
     5from cherrypy import _cpwsgiserver 
    66from cherrypy._cperror import format_exc, bare_error 
    77from cherrypy.lib import httptools 
  • trunk/cherrypy/config.py

    r1096 r1100  
    44 
    55import cherrypy 
    6 from cherrypy import _cputil 
    7 from cherrypy.lib import autoreload, cptools, httptools 
     6from cherrypy.lib import autoreload, cptools 
    87 
    98environments = { 

Hosted by WebFaction

Log in as guest/cpguest to create tickets