Class: Resque::Failure::CrashLog

Inherits:
Base
  • Object
show all
Defined in:
lib/resque/failure/crash_log.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.countObject



2
3
4
5
6
# File 'lib/resque/failure/crash_log.rb', line 2

def self.count
  # No information on this from CrashLog, so we're stealing the approach
  # Airbrake has taken, and just using Resque's own stats.
  Stat[:failed]
end

Instance Method Details

#saveObject



8
9
10
# File 'lib/resque/failure/crash_log.rb', line 8

def save
  CrashLog.notify_or_ignore(exception, :context => crash_log_context)
end