Skip to content

Instantly share code, notes, and snippets.

@ilake
Created November 27, 2012 23:33
Show Gist options
  • Select an option

  • Save ilake/4157952 to your computer and use it in GitHub Desktop.

Select an option

Save ilake/4157952 to your computer and use it in GitHub Desktop.
trace
begin
raise
rescue => e
logger.error e.message
e.backtrace.each { |line| logger.error line }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment