Project

General

Profile

« Previous | Next » 

Revision aec3e0dc

Added by Ohad Levy almost 12 years ago

  • ID aec3e0dcffe08618ae8b49db9a48fcd14090b434

ensure we print the whole trace to the debug log in cases of failures

View differences:

app/controllers/application_controller.rb
def generic_exception(exception)
logger.warn "Operation FAILED: #{exception}"
logger.debug Rails.backtrace_cleaner.clean(exception.backtrace).join("\n")
logger.debug exception.backtrace.join("\n")
render :template => "common/500", :layout => !request.xhr?, :status => 500, :locals => { :exception => exception}
end
end

Also available in: Unified diff