Method: ExceptionHub::Notifier#notify!
- Defined in:
- lib/exception_hub/notifier.rb
#notify! ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/exception_hub/notifier.rb', line 10 def notify! begin issue = Issue.new issue.description = build_description issue.title = "#{@exception.class.name}: #{@exception.}" issue.send_to_github rescue Exception => ex ExceptionHub.logger.error("ExceptionHub: #{ex.class.name}: #{ex.}") ExceptionHub.logger.error(ex.backtrace.reduce("") {|memo, line| memo << line << "\n"}) end end |