Method: Honeybadger#install_at_exit_callback
- Defined in:
- lib/honeybadger/singleton.rb
permalink #install_at_exit_callback ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
78 79 80 81 82 83 84 85 86 |
# File 'lib/honeybadger/singleton.rb', line 78 def install_at_exit_callback at_exit do if $! && !ignored_exception?($!) && Honeybadger.config[:'exceptions.notify_at_exit'] Honeybadger.notify($!, component: 'at_exit', sync: true) end Honeybadger.stop if Honeybadger.config[:'send_data_at_exit'] end end |