mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
Don't exit on shutdown, just break out (lets unit tests continue)
This commit is contained in:
parent
1f317a73b0
commit
1f991c7417
1 changed files with 1 additions and 1 deletions
|
@ -466,6 +466,7 @@ class LogStash::Agent
|
|||
if @plugins.values.count { |p| p.alive? } == 0
|
||||
@logger.warn("no plugins running, shutting down")
|
||||
shutdown
|
||||
break
|
||||
end
|
||||
@logger.debug("heartbeat")
|
||||
end
|
||||
|
@ -484,7 +485,6 @@ class LogStash::Agent
|
|||
shutdown_plugins(@plugins)
|
||||
# When we get here, all inputs have finished, all messages are done
|
||||
@logger.info("Shutdown complete")
|
||||
exit(0)
|
||||
end # def shutdown
|
||||
|
||||
def shutdown_plugins(plugins)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue