mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
- fix amqp input connection retry failure.
This commit is contained in:
parent
e3a05b9ea6
commit
81cb804104
1 changed files with 2 additions and 3 deletions
|
@ -71,10 +71,9 @@ class LogStash::Inputs::Amqp < LogStash::Inputs::Base
|
|||
end # def register
|
||||
|
||||
def run(queue)
|
||||
@logger.debug("Connecting with AMQP settings #{@amqpsettings.inspect} to set up #{@mqtype.inspect} queue #{@name.inspect}")
|
||||
@bunny = Bunny.new(@amqpsettings)
|
||||
|
||||
begin
|
||||
@logger.debug("Connecting with AMQP settings #{@amqpsettings.inspect} to set up #{@mqtype.inspect} queue #{@name.inspect}")
|
||||
@bunny = Bunny.new(@amqpsettings)
|
||||
return if terminating?
|
||||
@bunny.start
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue