From 140619ff00969bec84a6f004176dfae3f4f0a9b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Mon, 15 Apr 2024 17:17:07 +0200 Subject: [PATCH] Log exceptions as :error instead of :fatal As mentioned in the pull request introducing this change [1]: > FATAL is documented in the Ruby Logger docs as being for "An > unhandleable error that results in a program crash.", which does not > really apply to this case since DebugExceptions is handling the error. So we're using the new default value, which makes more sense. [1] Pull request 48575 in https://github.com/rails/rails --- config/initializers/new_framework_defaults_7_1.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/new_framework_defaults_7_1.rb b/config/initializers/new_framework_defaults_7_1.rb index c874287af..83f10c2a6 100644 --- a/config/initializers/new_framework_defaults_7_1.rb +++ b/config/initializers/new_framework_defaults_7_1.rb @@ -245,7 +245,7 @@ Rails.application.config.action_view.sanitizer_vendor = Rails::HTML::Sanitizer.b # Configure the log level used by the DebugExceptions middleware when logging # uncaught exceptions during requests. #++ -# Rails.application.config.action_dispatch.debug_exception_log_level = :error +Rails.application.config.action_dispatch.debug_exception_log_level = :error ###