lib/celluloid/supervisor.rb in celluloid-0.6.1 vs lib/celluloid/supervisor.rb in celluloid-0.6.2

- old
+ new

@@ -29,14 +29,10 @@ rescue => ex failures += 1 if failures >= start_attempts failures = 0 - warning = "#{@klass} is crashing on initialize repeatedly, sleeping for #{sleep_interval} seconds\n" - warning << "#{ex.class}: #{ex}\n " - warning << "#{ex.backtrace.join("\n ")}" - - Celluloid.logger.warn warning if Celluloid.logger + Celluloid::Logger.crash("#{@klass} is crashing on initialize repeatedly, sleeping for #{sleep_interval} seconds", ex) sleep sleep_interval end retry end