Do not show the configuration content anymore. Plugin validation errors and other config problems are more specifically logged before we get to this point, and showing the full config can too easily obscure a more actional 'you used an invalid setting' kind of error.

Fixes #6654
This commit is contained in:
Jordan Sissel 2017-02-05 00:39:56 -08:00
parent acdd400e97
commit 2957c8f150

View file

@ -237,9 +237,9 @@ class LogStash::Agent
n.gauge(:last_failure_timestamp, LogStash::Timestamp.now) n.gauge(:last_failure_timestamp, LogStash::Timestamp.now)
end end
if @logger.debug? if @logger.debug?
@logger.error("fetched an invalid config", :config => config, :reason => exception.message, :backtrace => exception.backtrace) @logger.error("Cannot load an invalid configuration.", :reason => exception.message, :backtrace => exception.backtrace)
else else
@logger.error("fetched an invalid config", :config => config, :reason => exception.message) @logger.error("Cannot load an invalid configuration.", :reason => exception.message)
end end
end end