We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb9bd70 commit 4547621Copy full SHA for 4547621
lib/rails_semantic_logger/engine.rb
@@ -266,6 +266,9 @@ class Engine < ::Rails::Engine
266
# Re-open appenders after Spring has forked a process
267
Spring.after_fork { |_job| ::SemanticLogger.reopen } if defined?(Spring.after_fork)
268
269
+ # Re-open appenders after SolidQueue has forked a worker
270
+ SolidQueue.on_worker_start { ::SemanticLogger.reopen } if defined?(SolidQueue.on_worker_start)
271
+
272
console do |_app|
273
# Don't use a background thread for logging
274
SemanticLogger.sync!
0 commit comments