rephrase pipeline creation error message, fixes #6968

This commit is contained in:
Colin Surprenant 2017-04-25 16:22:04 -06:00
parent ffdcd07966
commit 3f1644aab5

View file

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