Sha256: 6c11aa7684963a9bb0beeceda019ce8053382c6723c1d10f9e2e5f0314758a3f
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 KB
Contents
require 'zikrash/version' require 'zikrash/exception_info' require 'zikrash/code_extractor' require 'zikrash/send_report' require 'logger' module Zikrash class << self def report(project_key, exception, session_info = {}, params_info = {}, additional_reports = {}) return false if project_key.blank? || exception.blank? begin exception_info = ExceptionInfo.new(exception) return false unless exception_info send_report = SendReport.new(project_key, exception_info.data, session_info, params_info, additional_reports) send_report.let_it_go rescue Exception => error # Just in case I messed up badly Rails.logger.fatal("========== Zikrash Gem Crashed ==========") Rails.logger.fatal("Please notify it's developers") Rails.logger.fatal("Exception message: #{error.message}") Rails.logger.fatal("Exception location: #{error.backtrace.first}") Rails.logger.fatal("=========================================\n") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
zikrash-1.1.0 | lib/zikrash.rb |
zikrash-1.0.1 | lib/zikrash.rb |