def debug
      raise ArgumentError,
        "RDO::Connection#debug requires a block" unless block_given?

      reset, logger.level = logger.level, Logger::DEBUG
      yield
    ensure
      logger.level = reset
    end
def debug
      raise ArgumentError,
        "RDO::Connection#debug requires a block" unless block_given?

      reset, logger.level = logger.level, Logger::DEBUG
      yield
    ensure
      logger.level = reset
    end
Use debug log level in the context of a block.