Skip to content

Commit dafb3f1

Browse files
committed
Merge pull request elastic#1665 from mfournier/LOGSTASH-1886-2nd_try
LOGSTASH-1886: intercept exception raised by march_hare
2 parents 0aaf8c6 + abe6bdb commit dafb3f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/logstash/outputs/rabbitmq/march_hare.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def publish_serialized(message)
4444
else
4545
@logger.warn("Tried to send a message, but not connected to RabbitMQ.")
4646
end
47-
rescue MarchHare::Exception, com.rabbitmq.client.AlreadyClosedException => e
47+
rescue MarchHare::Exception, IOError, com.rabbitmq.client.AlreadyClosedException => e
4848
@connected.set(false)
4949
n = 10
5050

0 commit comments

Comments
 (0)