lib/supergood/client.rb in supergood-0.1.2 vs lib/supergood/client.rb in supergood-0.1.3
- old
+ new
@@ -73,11 +73,10 @@
begin
api.post_events(data)
rescue => e
log.error(data, e, e.message)
- cleanup()
ensure
@response_cache.clear
@request_cache.clear if force
end
@@ -145,11 +144,10 @@
@request_cache[request_id] = {
request: request_payload
}
rescue => e
log.error({ request: request }, e, ERRORS[:CACHING_REQUEST])
- cleanup()
end
end
def cache_response(request_id, requested_at, response)
begin
@@ -171,10 +169,9 @@
rescue => e
log.error(
{ request: request_payload, response: response_payload },
e, ERRORS[:CACHING_RESPONSE]
)
- cleanup()
end
end
def ignored?(domain)
base_domain = URI.parse(@base_url).hostname