REGRESSION: exceptions are handled natively by logster

This commit is contained in:
Sam
2015-02-27 13:05:51 +11:00
parent 9d3c7f4a52
commit 71d6266f98
2 changed files with 0 additions and 37 deletions

View File

@ -59,20 +59,6 @@ class ApplicationController < ActionController::Base
use_crawler_layout? ? 'crawler' : 'application'
end
rescue_from Exception do |exception|
unless [ActiveRecord::RecordNotFound,
ActionController::RoutingError,
ActionController::UnknownController,
AbstractController::ActionNotFound].include? exception.class
begin
Discourse.handle_request_exception(exception, self, request, current_user)
rescue
# dont care give up
end
end
raise
end
# Some exceptions
class RenderEmpty < Exception; end