@contextmanager
    def debug(self):
        self.logger.disabled = False
        try:
            yield
        finally:
            self.logger.disabled = True
Temporarily enables debug logging, useful in tests, e.g.
dataset/ETHPy150Open openstack/swift/swift/common/ring/builder.py/RingBuilder.debug