mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 05:01:14 +08:00
REGRESSION: exceptions are handled natively by logster
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user