hook into Airbreak#notify_or_ignore

This commit is contained in:
2012-02-03 14:26:34 +00:00
parent 992fda152d
commit aabcf073e8
2 changed files with 37 additions and 1 deletions

View File

@@ -9,5 +9,13 @@ module Airbrake
alias :notify_without_statsd :notify
alias :notify :notify_with_statds
def notify_or_ignore_with_statsd(*args)
Airbrake::Statsd.increment
notify_or_ignore_without_statsd(*args)
end
alias :notify_or_ignore_without_statsd :notify_or_ignore
alias :notify_or_ignore :notify_or_ignore_with_statsd
end
end