Skip to content

Commit

Permalink
Made the rails error messages log a nice stack trace
Browse files Browse the repository at this point in the history
  • Loading branch information
parthaa committed Sep 20, 2011
1 parent 19668a4 commit 2322d45
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/controllers/application_controller.rb
Expand Up @@ -447,7 +447,10 @@ def first_env_in_path accessible_envs, include_locker=false
end

def execute_rescue exception, renderer
logger.warn exception.message
if exception
logger.error exception.message
logger.error '#{exception.inspect}\n#{exception.backtrace.join("\n")}'
end
if current_user
User.current = current_user
renderer.call(exception)
Expand Down

0 comments on commit 2322d45

Please sign in to comment.