gitlab-org--gitlab-foss/config/initializers/rbtrace.rb
Stan Hu 820923664d Make rbtrace work under unicorn
The Unicorn master resets any signal handlers and prevents rbtrace
from working properly as a result. Move the `require 'rbtrace'` call
to the Unicorn `after_fork` block and keep the initializer only for Sidekiq.
2018-07-30 08:12:45 -07:00

5 lines
213 B
Ruby

# frozen_string_literal: true
# rbtrace needs to be included after the unicorn worker forks.
# See the after_fork block in config/unicorn.rb.example.
require 'rbtrace' if ENV['ENABLE_RBTRACE'] && Sidekiq.server?