lib/logstash/outputs/pagerduty.rb in logstash-output-pagerduty-1.0.0 vs lib/logstash/outputs/pagerduty.rb in logstash-output-pagerduty-2.0.0
- old
+ new
@@ -67,11 +67,10 @@
request = Net::HTTP::Post.new(@pd_uri.path)
request.body = LogStash::Json.dump(pd_event)
@logger.debug("PD Request", :request => request.inspect)
response = @client.request(request)
@logger.debug("PD Response", :response => response.body)
-
rescue Exception => e
- @logger.debug("PD Unhandled exception", :pd_error => e.backtrace)
+ @logger.error("PD Unhandled exception", :pd_error => e.backtrace)
end
end # def receive
end # class LogStash::Outputs::PagerDuty