lib/bing/ads/api/soap_client.rb in bing-ads-0.1.6 vs lib/bing/ads/api/soap_client.rb in bing-ads-0.1.7

- old
+ new

@@ -15,10 +15,11 @@ @namespace_identifier = options[:namespace_identifier] @authentication_token = options[:authentication_token] @username = options[:username] @password = options[:password] @client_settings = options[:client_settings] + @log_level = options[:log_level] || :error end def call(operation:, payload: {}) client(client_settings).call(operation, message: payload) end @@ -29,10 +30,10 @@ convert_request_keys_to: :camelcase, wsdl: wsdl_url, namespace_identifier: namespace_identifier, soap_header: soap_header, log: true, - log_level: :debug, + log_level: @log_level, pretty_print_xml: true } settings.merge!(client_settings) if client_settings @savon_client = Savon.client(settings) end