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

Changeset 1335

Show
Ignore:
Timestamp:
09/05/06 15:28:01
Author:
fumanchu
Message:

Rather than default to an error log file, we'll just default to screen. This circumvents any permission problems in the cherrypy install directory.

Files:

Legend:

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

    r1334 r1335  
    9898class _GlobalLogManager(_cplogging.LogManager): 
    9999     
    100     def __init__(self, appid=None): 
    101         _cplogging.LogManager.__init__(self, appid) 
    102         # Set a default screen handler on the global log. 
    103         self.screen = True 
    104      
    105100    def __call__(self, *args, **kwargs): 
    106101        try: 
     
    118113 
    119114log = _GlobalLogManager() 
    120 log.error_file = _os.path.join(_os.getcwd(), _localdir, "error.log") 
     115# Set a default screen handler on the global log. 
     116log.screen = True 
     117log.error_file = '' 
    121118# Using an access file makes CP about 10% slower. Leave off by default. 
    122119log.access_file = '' 

Hosted by WebFaction

Log in as guest/cpguest to create tickets