Skip to content

Instantly share code, notes, and snippets.

@jstirk
Created December 9, 2011 02:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jstirk/1449853 to your computer and use it in GitHub Desktop.
Save jstirk/1449853 to your computer and use it in GitHub Desktop.
rescue_from tracer
module ActiveSupport::Rescuable::ClassMethods
alias :old_rescue_from :rescue_from
def rescue_from(*k,&b)
Rails.logger.debug "rescue_from!!!!! #{self.name} (#{k.inspect})"
Rails.logger.debug caller.join("\n")
old_rescue_from(*k, &b)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment