rephrase pipeline creation error message, fixes #6968

This commit is contained in:
Colin Surprenant 2017-04-25 16:22:04 -06:00
parent 5e417bd877
commit f34cf4a1bc

View file

@ -261,9 +261,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