lib/onering/plugins/reporter.rb in onering-client-0.0.88 vs lib/onering/plugins/reporter.rb in onering-client-0.0.89

- old
+ new

@@ -77,18 +77,23 @@ begin Timeout.timeout((@options[:plugin_timeout] || 10).to_i) do Onering::Logger.debug("Loading plugin #{plugin}", "Onering::Reporter") require "#{directory}/#{plugin}" end - rescue Timeout::Error => e + rescue Timeout::Error Onering::Logger.warn("Plugin #{plugin} took too long to return, skipping", "Onering::Reporter") end end end end end rescue Exception => e - Onering::Logger.warn(e.message, e.class.name) + Onering::Logger.warn(e.message, "Onering::Reporter/#{e.class.name}") + + e.backtrace.each do |eb| + Onering::Logger.debug(eb, "Onering::Reporter/#{e.class.name}") + end + next end end end