fix logic of logging configs

Fixes #6789
This commit is contained in:
Joao Duarte 2017-03-02 17:06:41 +00:00 committed by Suyog Rao
parent 97d7c92659
commit a83692c228

View file

@ -200,7 +200,7 @@ class LogStash::Runner < Clamp::StrictCommand
# 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?
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.")
end