show backtrace in debug mode

This commit is contained in:
Pete Fritchman 2011-03-27 21:51:10 -07:00
parent 67f271962e
commit 6230598db3

View file

@ -319,6 +319,8 @@ class LogStash::Agent
end
rescue Exception => e
@logger.warn(["Output #{output.to_s} thread exception", e])
@logger.debug(["Output #{output.to_s} thread exception backtrace",
e.backtrace])
retry
end
end # Thread.new