grrrisu/Simulator

View on GitHub
lib/exception_handler.rb

Summary

Maintainability
A
0 mins
Test Coverage
Celluloid.exception_handler do |exception|
  event = {event: exception.backtrace.first, error: exception.message}
  if monitor = Celluloid::Actor[:monitor]
    monitor.async.add_error event
  end
end