Ignore:
Timestamp:
2 Jun 2012, 17:57:54 (13 years ago)
Author:
uli
Message:

Move the logger filter addition. Speeds up imports definitely, while I
am not sure about any side effects.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/utils/logger.py

    r8492 r8608  
    182182            dict(sitename='%s' % sitename))
    183183        logger = logging.getLogger(loggername)
    184         flt = ContextFilter()
    185         logger.addFilter(flt)
    186184        if site is None or sitename is None:
    187185            # Site not added to ZODB yet. Log to commandline
     
    225223        logger.addHandler(handler)
    226224        logger.setLevel(LEVEL)
     225
     226        flt = ContextFilter()
     227        logger.addFilter(flt)
    227228        return logger
    228229
Note: See TracChangeset for help on using the changeset viewer.