lib/flexmls_api/faraday.rb in flexmls_api-0.3.2 vs lib/flexmls_api/faraday.rb in flexmls_api-0.3.3
- old
+ new
@@ -4,10 +4,9 @@
# HTTP Response after filter to package api responses and bubble up basic api errors.
class FlexmlsMiddleware < Faraday::Response::Middleware
begin
def self.register_on_complete(env)
env[:response].on_complete do |finished_env|
- FlexmlsApi.logger.debug("hashed response: #{finished_env[:body].inspect}")
validate_and_build_response(finished_env)
end
end
rescue LoadError, NameError => e
self.load_error = e