lib/zold/verbose_thread.rb in zold-0.18.8 vs lib/zold/verbose_thread.rb in zold-0.18.9
- old
+ new
@@ -33,9 +33,10 @@
def initialize(log = Log::NULL)
@log = log
end
def run(safe = false)
+ Thread.current.report_on_exception = false
yield
rescue StandardError => e
@log.error(Backtrace.new(e).to_s)
raise e unless safe
end