Revision 37b53292
Added by Marc Dequènes about 14 years ago
- ID 37b532925fa4a8af584036211224a85af7403017
lib/cyborghood/cyborg.rb | ||
---|---|---|
@system_notification_processing = @system_notification.subscribe do |msg|
|
||
process_system_notification(msg)
|
||
end
|
||
|
||
EventMachine.error_handler do |e|
|
||
logger.error "Reactor error: " + e.to_s
|
||
logger.debug e.backtrace.join("\n")
|
||
end
|
||
end
|
||
|
||
def run
|
||
... | ... | |
start_work
|
||
end
|
||
rescue EventMachine::ConnectionNotBound
|
||
logger.fatal "Internal error (EventMachine::ConnectionNotBound)"
|
||
logger.error "Reactor error: Internal error (EventMachine::ConnectionNotBound)"
|
||
end
|
||
|
||
def start_work
|
Also available in: Unified diff
[evol] catch all remaining reactor errors