Merge pull request #1665 from mfournier/LOGSTASH-1886-2nd_try

LOGSTASH-1886: intercept exception raised by march_hare
This commit is contained in:
Jordan Sissel 2014-08-28 12:59:37 -07:00
commit dafb3f1478

View file

@ -44,7 +44,7 @@ class LogStash::Outputs::RabbitMQ
else
@logger.warn("Tried to send a message, but not connected to RabbitMQ.")
end
rescue MarchHare::Exception, com.rabbitmq.client.AlreadyClosedException => e
rescue MarchHare::Exception, IOError, com.rabbitmq.client.AlreadyClosedException => e
@connected.set(false)
n = 10