fix tests and bring back configure logging in runner

Fixes #5901
This commit is contained in:
Tal Levy 2016-09-13 13:52:01 -07:00
parent 63233b1cf1
commit b072d93c85

View file

@ -188,6 +188,8 @@ class LogStash::Runner < Clamp::StrictCommand
log4j_config_location = ::File.join(setting("path.settings"), "log4j2.properties")
LogStash::Logging::Logger::initialize(log4j_config_location)
end
# override log level that may have been introduced from a custom log4j config file
LogStash::Logging::Logger::configure_logging(setting("log.level"))
if setting("config.debug") && logger.debug?
logger.warn("--config.debug was specified, but log.level was not set to \'debug\'! No config info will be logged.")