mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
- remove old breaks.
This commit is contained in:
parent
55bffd2b4f
commit
5a789a9e75
1 changed files with 0 additions and 2 deletions
|
@ -63,7 +63,6 @@ class LogStash::Outputs::Amqp < LogStash::Outputs::Base
|
|||
@logger.debug(["Connecting to AMQP", amqpsettings, @exchange_type, @name])
|
||||
@bunny = Bunny.new(amqpsettings)
|
||||
@bunny.start
|
||||
break # success
|
||||
rescue Bunny::ServerDownError => e
|
||||
if terminating?
|
||||
return
|
||||
|
@ -82,7 +81,6 @@ class LogStash::Outputs::Amqp < LogStash::Outputs::Base
|
|||
begin
|
||||
if @target
|
||||
@target.publish(event.to_json, :persistent => @persistent)
|
||||
break;
|
||||
else
|
||||
@logger.warn("Tried to send message, but not connected to amqp yet.")
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue