bin/metrics-beanstalkd.rb in sensu-plugins-beanstalk-1.2.0 vs bin/metrics-beanstalkd.rb in sensu-plugins-beanstalk-2.0.0
- old
+ new
@@ -53,10 +53,10 @@
default: "#{Socket.gethostname}.beanstalkd"
def acquire_beanstalkd_connection
begin
conn = Beaneater::Pool.new(["#{config[:server]}:#{config[:port]}"])
- rescue
+ rescue StandardError
warning 'could not connect to beanstalkd'
end
conn
end