lib/apisync/http_client.rb in apisync-0.2.1 vs lib/apisync/http_client.rb in apisync-0.2.2
- old
+ new
@@ -8,10 +8,10 @@
}.freeze
def initialize(resource_name:, options: {})
@resource_name = resource_name
@options = options
- @logger = options[:logger]
+ @logger = options[:logger] || ::Logger.new(IO::NULL)
end
def post(data:, headers: {})
request_body = {data: payload_from_data(data)}
url = request_url