mirror of
https://github.com/elastic/logstash.git
synced 2025-04-25 07:07:54 -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
|
if @plugins.values.count { |p| p.alive? } == 0
|
||||||
@logger.warn("no plugins running, shutting down")
|
@logger.warn("no plugins running, shutting down")
|
||||||
shutdown
|
shutdown
|
||||||
|
break
|
||||||
end
|
end
|
||||||
@logger.debug("heartbeat")
|
@logger.debug("heartbeat")
|
||||||
end
|
end
|
||||||
|
@ -484,7 +485,6 @@ class LogStash::Agent
|
||||||
shutdown_plugins(@plugins)
|
shutdown_plugins(@plugins)
|
||||||
# When we get here, all inputs have finished, all messages are done
|
# When we get here, all inputs have finished, all messages are done
|
||||||
@logger.info("Shutdown complete")
|
@logger.info("Shutdown complete")
|
||||||
exit(0)
|
|
||||||
end # def shutdown
|
end # def shutdown
|
||||||
|
|
||||||
def shutdown_plugins(plugins)
|
def shutdown_plugins(plugins)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue