mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
ensure 'starting logstash' log entry happens first
This commit is contained in:
parent
9fdef56b10
commit
8da85f4384
1 changed files with 2 additions and 2 deletions
|
@ -301,6 +301,8 @@ class LogStash::Runner < Clamp::StrictCommand
|
|||
return 0
|
||||
end
|
||||
|
||||
logger.info("Starting Logstash", "logstash.version" => LOGSTASH_VERSION, "jruby.version" => RUBY_DESCRIPTION)
|
||||
|
||||
# Add local modules to the registry before everything else
|
||||
LogStash::Modules::Util.register_local_modules(LogStash::Environment::LOGSTASH_HOME)
|
||||
|
||||
|
@ -381,8 +383,6 @@ class LogStash::Runner < Clamp::StrictCommand
|
|||
# lock path.data before starting the agent
|
||||
@data_path_lock = FileLockFactory.obtainLock(java.nio.file.Paths.get(setting("path.data")).to_absolute_path, ".lock")
|
||||
|
||||
logger.info("Starting Logstash", "logstash.version" => LOGSTASH_VERSION, "jruby.version" => RUBY_DESCRIPTION)
|
||||
|
||||
@dispatcher.fire(:before_agent)
|
||||
@agent = create_agent(@settings, @source_loader)
|
||||
@dispatcher.fire(:after_agent)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue