be more liberal with what we catch for bunny connect problems

This commit is contained in:
Pete Fritchman 2011-05-21 00:23:26 -07:00
parent 82e7843c66
commit 14e6cb0220

View file

@ -63,7 +63,7 @@ class LogStash::Outputs::Amqp < LogStash::Outputs::Base
@logger.debug(["Connecting to AMQP", amqpsettings, @exchange_type, @name])
@bunny = Bunny.new(amqpsettings)
@bunny.start
rescue Bunny::ServerDownError => e
rescue => e
if terminating?
return
else