lib/asynchronic/garbage_collector.rb in asynchronic-4.0.0 vs lib/asynchronic/garbage_collector.rb in asynchronic-4.0.1

- old
+ new

@@ -23,10 +23,11 @@ conditions.each do |name, condition| Asynchronic.logger.info('Asynchronic') { "Running GC - #{name}" } begin processes.select(&condition).each(&:destroy) rescue => ex - Asynchronic.logger.error('Asynchronic') { "#{ex.class}: #{ex.message}" } + error_message = "#{ex.class}: #{ex.message}\n#{ex.backtrace.join("\n")}" + Asynchronic.logger.error('Asynchronic') { error_message } end end wait end \ No newline at end of file