Removes kombu.log.anon_logger

This commit is contained in:
Ask Solem 2013-09-22 21:52:16 +01:00
parent 4e6be0d9fc
commit ca5f78ac21
1 changed files with 3 additions and 9 deletions

View File

@ -13,9 +13,9 @@ from .utils.functional import maybe_evaluate
__all__ = ['LogMixin', 'LOG_LEVELS', 'get_loglevel', 'setup_logging']
LOG_LEVELS = dict(logging._levelNames)
LOG_LEVELS['FATAL'] = logging.FATAL
LOG_LEVELS[logging.FATAL] = 'FATAL'
FATAL = logging.FATAL
LOG_LEVELS = dict({'FATAL': logging.fatal, FATAL: 'FATAL'},
**logging._levelNames)
DISABLE_TRACEBACKS = os.environ.get('DISABLE_TRACEBACKS')
@ -33,12 +33,6 @@ def get_logger(logger):
return logger
def anon_logger(name):
logger = logging.getLogger(name)
logger.addHandler(NullHandler())
return logger
def get_loglevel(level):
if isinstance(level, string_t):
return LOG_LEVELS[level]