mirror of
https://github.com/elastic/logstash.git
synced 2025-04-23 22:27:21 -04:00
parent
6d3cd9d660
commit
bb392113cf
1 changed files with 6 additions and 6 deletions
|
@ -190,12 +190,6 @@ class LogStash::Runner < Clamp::StrictCommand
|
|||
@settings = LogStash::SETTINGS
|
||||
@bootstrap_checks = DEFAULT_BOOTSTRAP_CHECKS.dup
|
||||
|
||||
# Default we check local sources: `-e`, `-f` and the logstash.yml options.
|
||||
@source_loader = LogStash::Config::SourceLoader.new(@settings)
|
||||
@source_loader.add_source(LogStash::Config::Source::Local.new(@settings))
|
||||
@source_loader.add_source(LogStash::Config::Source::Modules.new(@settings))
|
||||
@source_loader.add_source(LogStash::Config::Source::MultiLocal.new(@settings))
|
||||
|
||||
super(*args)
|
||||
end
|
||||
|
||||
|
@ -256,6 +250,12 @@ class LogStash::Runner < Clamp::StrictCommand
|
|||
return 0
|
||||
end
|
||||
|
||||
# Default we check local sources: `-e`, `-f` and the logstash.yml options.
|
||||
@source_loader = LogStash::Config::SourceLoader.new(@settings)
|
||||
@source_loader.add_source(LogStash::Config::Source::Local.new(@settings))
|
||||
@source_loader.add_source(LogStash::Config::Source::Modules.new(@settings))
|
||||
@source_loader.add_source(LogStash::Config::Source::MultiLocal.new(@settings))
|
||||
|
||||
# Add local modules to the registry before everything else
|
||||
LogStash::Modules::Util.register_local_modules(LogStash::Environment::LOGSTASH_HOME)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue