From a83692c2286b21dafa764b0ecbd4bd02d5974c57 Mon Sep 17 00:00:00 2001 From: Joao Duarte Date: Thu, 2 Mar 2017 17:06:41 +0000 Subject: [PATCH] fix logic of logging configs Fixes #6789 --- logstash-core/lib/logstash/runner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logstash-core/lib/logstash/runner.rb b/logstash-core/lib/logstash/runner.rb index 94b79e35c..587403cd3 100644 --- a/logstash-core/lib/logstash/runner.rb +++ b/logstash-core/lib/logstash/runner.rb @@ -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