Changeset 3626


Ignore:
Timestamp:
Feb 13, 2011 11:45:28 PM (9 years ago)
Author:
wehart
Message:

Setting coopr.opt logging configuration. The 'coopr'
logger is set to NullHandler?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.opt/trunk/coopr/opt/base/log_config.py

    r3624 r3626  
    66
    77logger = logging.getLogger('coopr.opt')
    8 #print "LOGGER", logger, logger.handlers
    98logger.addHandler( LogHandler(coopr_base) )
    109logger.setLevel( logging.WARNING )
    11 #print "LOGGER", logger, logger.handlers
     10
     11class NullHandler(logging.Handler):
     12        def emit(self, record):         #pragma:nocover
     13            """Do not generate logging record"""
    1214
    1315# TODO: move this into a coopr.common project
    1416logger = logging.getLogger('coopr')
    15 logger.addHandler( LogHandler(coopr_base) )
     17logger.addHandler( NullHandler() )
    1618logger.setLevel( logging.WARNING )
    1719
Note: See TracChangeset for help on using the changeset viewer.