Skip to content

Commit

Permalink
🐛 Reopen SemanticLogger after puma process forks
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerwillingham committed Sep 6, 2024
1 parent 8cadc24 commit 26635e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
port ENV.fetch('PORT', 3000)

on_worker_boot do
SemanticLogger.reopen
end

# Allow puma to be restarted by `bin/rails restart` command.
plugin :tmp_restart

Expand Down

0 comments on commit 26635e3

Please sign in to comment.