lib/intacctrb/base.rb in intacctrb-0.8.20 vs lib/intacctrb/base.rb in intacctrb-0.8.21

- old
+ new

@@ -64,11 +64,11 @@ @sent_xml = xml url = "https://www.intacct.com/ia/xml/xmlgw.phtml" uri = URI(url) retry_count += 1 - res = Net::HTTP.post_form(uri, 'xmlrequest' => xml) + res = Net::HTTP.post_form(uri, 'xmlrequest' => xml, read_timeout: 30) @response = Nokogiri::XML(res.body) IntacctRB.logger.debug res.body if successful? if key = response.at('//result//RECORDNO') || response.at('//result//key') set_intacct_id key.content if object @@ -82,10 +82,10 @@ run_hook :on_error end @response rescue Net::ReadTimeout => e if retry_count <= 3 - IntacctRB.logger.warning "Net::ReadTimeout in IntacctRB; retrying" + IntacctRB.logger.warn "Net::ReadTimeout in IntacctRB; retrying" retry else IntacctRB.logger.error "Net::ReadTimeout in IntacctRB; retries exhausted" raise e end