def build_connection
      RestClient.log = config.logger if config.logger
      RestClient::Resource.new(config.base_url, config.options.merge(auth_options))
    end
def build_connection
      RestClient.log = config.logger if config.logger
      RestClient::Resource.new(config.base_url, config.options.merge(auth_options))
    end
Called by {#connection} to build a connection.

 Request logger if logger is not nil