tolerate incorrect path.settings value

Fixes #5393
This commit is contained in:
Joao Duarte 2016-05-30 18:16:27 +01:00 committed by João Duarte
parent db2b40c9ed
commit 1520a36cd4

View file

@ -138,7 +138,12 @@ class LogStash::Runner < Clamp::StrictCommand
@settings.set("path.settings", settings_path) if settings_path
begin
LogStash::SETTINGS.from_yaml(LogStash::SETTINGS.get("path.settings"))
rescue => e
puts "Warning: Could not find logstash.yml in 'path.settings' (value: \"#{LogStash::SETTINGS.get("path.settings")}\"), using internal defaults."
end
super(*[args])
end