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
This commit is contained in:
Javi Martín
2024-04-15 17:17:07 +02:00
parent cbf11c2514
commit 140619ff00

View File

@@ -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 # Configure the log level used by the DebugExceptions middleware when logging
# uncaught exceptions during requests. # uncaught exceptions during requests.
#++ #++
# Rails.application.config.action_dispatch.debug_exception_log_level = :error Rails.application.config.action_dispatch.debug_exception_log_level = :error
### ###