blob: 6a1b71bf4bdb806cd3970f4aa441ec4ebf78fe8e (
plain)
1
2
3
4
5
6
7
8
9
|
# frozen_string_literal: true
if ENV['ENABLE_RBTRACE']
Gitlab::Cluster::LifecycleEvents.on_worker_start do
# Unicorn clears out signals before it forks, so rbtrace won't work
# unless it is enabled after the fork.
require 'rbtrace'
end
end
|