Logging to stdout in development

This commit is contained in:
2026-03-01 16:36:05 +02:00
parent 398be566f2
commit 8412103349
+4 -1
View File
@@ -64,7 +64,7 @@ Rails.application.configure do
# Replace the default in-process and non-durable queuing backend for Active Job.
config.active_job.queue_adapter = :solid_queue
config.solid_queue.connects_to = { database: { writing: :queue } }
config.solid_queue.logger = ActiveSupport::Logger.new($stdout)
# config.solid_queue.logger = ActiveSupport::Logger.new($stdout)
# Raises error for missing translations.
# config.i18n.raise_on_missing_translations = true
@@ -80,4 +80,7 @@ Rails.application.configure do
# Apply autocorrection by RuboCop to files generated by `bin/rails generate`.
# config.generators.apply_rubocop_autocorrect_after_generate!
# Mostly needed so that SolidJob jobs are also logged to stdout
config.logger = ActiveSupport::TaggedLogging.logger($stdout)
end