Skip to content

Commit 23efb8d

Browse files
jsvdelasticsearch-bot
authored andcommitted
ensure 'starting logstash' log entry happens first
1 parent b81b54d commit 23efb8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

logstash-core/lib/logstash/runner.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,8 @@ def execute
301301
return 0
302302
end
303303

304+
logger.info("Starting Logstash", "logstash.version" => LOGSTASH_VERSION, "jruby.version" => RUBY_DESCRIPTION)
305+
304306
# Add local modules to the registry before everything else
305307
LogStash::Modules::Util.register_local_modules(LogStash::Environment::LOGSTASH_HOME)
306308

@@ -381,8 +383,6 @@ def execute
381383
# lock path.data before starting the agent
382384
@data_path_lock = FileLockFactory.obtainLock(java.nio.file.Paths.get(setting("path.data")).to_absolute_path, ".lock")
383385

384-
logger.info("Starting Logstash", "logstash.version" => LOGSTASH_VERSION, "jruby.version" => RUBY_DESCRIPTION)
385-
386386
@dispatcher.fire(:before_agent)
387387
@agent = create_agent(@settings, @source_loader)
388388
@dispatcher.fire(:after_agent)

0 commit comments

Comments
 (0)