diff --git a/lib/lograge/log_subscribers/base.rb b/lib/lograge/log_subscribers/base.rb index ae62623a..d9b87ab9 100644 --- a/lib/lograge/log_subscribers/base.rb +++ b/lib/lograge/log_subscribers/base.rb @@ -52,9 +52,8 @@ def default_status 0 end - def get_error_status_code(exception) - status = ActionDispatch::ExceptionWrapper.rescue_responses[exception] - Rack::Utils.status_code(status) + def get_error_status_code(exception_class_name) + ActionDispatch::ExceptionWrapper.status_code_for_exception(exception_class_name) end def custom_options(event)