Friday, April 9, 2010

Rails/Ruby backtraces

Rails/Ruby backtraces


begin
  asd
rescue => e
  logger.info "BACKTRACED HERE"
  bt = e.backtrace.delete_if{ |l| !(/private_stuff/ =~ l) }
  logger.info YAML::dump(bt)
end

No comments:

Post a Comment