Skip to content

Instantly share code, notes, and snippets.

@olistik
Created December 10, 2009 10:24
Show Gist options
  • Save olistik/253257 to your computer and use it in GitHub Desktop.
Save olistik/253257 to your computer and use it in GitHub Desktop.
Log the backtrace in Rails
begin
raise "boom"
rescue => detail
Rails.logger.warn detail.backtrace.join("\n")
end
# ripped from here: http://codesnippets.joyent.com/posts/show/1983
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment