lib/flapjack/gateways/pagerduty.rb in flapjack-1.2.1rc3 vs lib/flapjack/gateways/pagerduty.rb in flapjack-1.2.1
- old
+ new
@@ -272,10 +272,9 @@
http = EM::HttpRequest.new(url).get(options)
begin
response = Flapjack.load_json(http.response)
rescue Oj::Error
@logger.error("failed to parse json from a post to #{url} ... response headers and body follows...")
- return nil
end
status = http.response_header.status
@logger.debug(http.response_header.inspect)
@logger.debug(http.response)