lib/neetodeploy/autoscale/sidekiq_middleware.rb in neetodeploy-autoscale-1.0.0 vs lib/neetodeploy/autoscale/sidekiq_middleware.rb in neetodeploy-autoscale-1.0.1
- old
+ new
@@ -24,10 +24,10 @@
begin
Net::HTTP.start(url.host, url.port, use_ssl: true) do |http|
http.request(post)
end
- rescue e
+ rescue => e
puts "Exception in sending post request to exporter from Sidekiq process: #{e.message}"
end
end
yield