@contextmanager
def disable_logger(logger):
    old = logger.disabled
    logger.disabled = True
    (yield)
    logger.disabled = old
@contextmanager
def disable_logger(logger):
    old = logger.disabled
    logger.disabled = True
    (yield)
    logger.disabled = old