Warnings in app boot #122
Labels
Comments
We run Puma in single mode, so you are on your own with this one. The Semantic Logger thread being created is by design, without it no logging will be performed. Suggest looking into what is generating that warning log message, since it is not from Semantic Logger. |
I booted our application in clustered mode without any issues. Below is the log output:
As per the docs, just had to add These are the lines I added / uncommented in workers ENV.fetch("WEB_CONCURRENCY") { 2 }
before_fork do
ApplicationRecord.connection_pool.disconnect! if defined?(ActiveRecord)
end
on_worker_boot do
ApplicationRecord.establish_connection if defined?(ActiveRecord)
# Re-open appenders after forking the process
SemanticLogger.reopen
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
kadru commentedFeb 15, 2021
Environment
config/application.rb
config/puma.rb
Expected Behavior
No warnings when is in use with rails and puma.
Actual Behavior
Warnings:
The text was updated successfully, but these errors were encountered: