lib/flexmls_api/faraday.rb in flexmls_api-0.3.3 vs lib/flexmls_api/faraday.rb in flexmls_api-0.3.6

- old
+ new

@@ -15,11 +15,11 @@ # Handles pretty much all the api response parsing and error handling. All responses that # indicate a failure will raise a FlexmlsApi::ClientError exception def self.validate_and_build_response(finished_env) body = finished_env[:body] - FlexmlsApi.logger.debug("Response Body: #{body.inspect}") + FlexmlsApi.logger.debug("Response Body: #{body}") unless body.is_a?(Hash) && body.key?("D") raise InvalidResponse, "The server response could not be understood" end response = ApiResponse.new body case finished_env[:status] @@ -45,7 +45,8 @@ super @parser = nil end end + end end