'Temporarily enables debug logging, useful in tests, e.g.
with rb.debug():
rb.rebalance()'

@contextmanager
def debug(self):

    self.logger.disabled = False
    try:
        (yield)
    finally:
        self.logger.disabled = True
