mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
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:
parent
acdd400e97
commit
2957c8f150
1 changed files with 2 additions and 2 deletions
|
@ -237,9 +237,9 @@ class LogStash::Agent
|
|||
n.gauge(:last_failure_timestamp, LogStash::Timestamp.now)
|
||||
end
|
||||
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
|
||||
@logger.error("fetched an invalid config", :config => config, :reason => exception.message)
|
||||
@logger.error("Cannot load an invalid configuration.", :reason => exception.message)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue