bin/sim_job 🔗
@@ -277,6 +277,11 @@ EM.run do
if e.is_a?(::Exception)
Sentry.capture_exception(e)
+ elsif e.is_a?(EM::HttpClient)
+ LOG.error e.response_header
+ Sentry.capture_message(
+ "HTTP Error: #{e.response_header.http_status} @ #{e.last_effective_url}"
+ )
else
Sentry.capture_message(e.to_s)
end