I recently updated my application to Rails 7.1 and the development server seems to have stopped logging error backtraces.
Example of the logs from a broken page:
Started GET "/coffees-subscription-choices" for ::1 at 2023-12-06 16:07:08 -0600
ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
Processing by GreatCoffeesController#index as HTML
Rendering layout layouts/about.html.erb
Rendering great_coffees/index.html.erb within layouts/about
Rendered great_coffees/index.html.erb within layouts/about (Duration: 31.9ms | Allocations: 7867)
Rendered layout layouts/about.html.erb (Duration: 32.1ms | Allocations: 8006)
Completed 500 Internal Server Error in 38ms (ActiveRecord: 12.5ms | Allocations: 11601)
No error message or backtrace.
I searched around a bit and applied these changes to config/initializers/new_framework_defaults_7_1.rb
, but to no effect :/
Rails.application.config.action_dispatch.show_exceptions = :all
Rails.application.config.action_dispatch.debug_exception_log_level = :error
Anyone know what I might be missing? Rails 7.0 logged the backtrace for errors as expected.
Completed 500 ...
line. You're only showing up to that line, so just putting this here on the off chance you're not thinking to look beyond that in your log setup. Are you seeing the development exception page in your browser? Or just the 500.html page? – ConiferousCompleted 500..
– FourchetteRails.env == "development"
? – Coniferous