lib/vedeu/main_loop.rb in vedeu-0.4.18 vs lib/vedeu/main_loop.rb in vedeu-0.4.19
- old
+ new
@@ -3,11 +3,10 @@
# Provides the main loop for a Vedeu application.
#
# Each time Vedeu starts one cycle in the application loop, it triggers the
# `:tick` event. A completion of that cycle will trigger `:tock`. This can be
# used by the client application for timing amongst other things.
- #
class MainLoop
trap('SIGTERM') { stop! }
trap('TERM') { stop! }
trap('INT') { stop! }
@@ -25,9 +24,10 @@
yield
safe_exit_point!
end
rescue VedeuInterrupt
+ Vedeu.log(type: :debug, message: 'Vedeu execution interrupted, exiting.')
end
# :nocov:
# Signal that we wish to terminate the running application.
#