mirror of
https://github.com/elastic/logstash.git
synced 2025-04-23 22:27:21 -04:00
Merge pull request #1665 from mfournier/LOGSTASH-1886-2nd_try
LOGSTASH-1886: intercept exception raised by march_hare
This commit is contained in:
commit
dafb3f1478
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue