diff options
author | Thong Kuah <tkuah@gitlab.com> | 2019-02-25 17:16:02 +1300 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2019-02-25 17:16:02 +1300 |
commit | f09399fc52d649bc4e145fc37ae309586846cc25 (patch) | |
tree | 1f279652e94b29c8ea4527f35076c6e3df9c7ed0 /config | |
parent | ecaa08cc284f4ea31fa1a181f909fef01eb48b05 (diff) | |
download | gitlab-ce-f09399fc52d649bc4e145fc37ae309586846cc25.tar.gz |
Turn on backtrace for sidekiq in development
This enables easier debugging in GDK
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/sidekiq.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/initializers/sidekiq.rb b/config/initializers/sidekiq.rb index be4183f39be..69a60a65e77 100644 --- a/config/initializers/sidekiq.rb +++ b/config/initializers/sidekiq.rb @@ -11,6 +11,10 @@ queues_config_hash[:namespace] = Gitlab::Redis::Queues::SIDEKIQ_NAMESPACE # Default is to retry 25 times with exponential backoff. That's too much. Sidekiq.default_worker_options = { retry: 3 } +if Rails.env.development? + Sidekiq.default_worker_options[:backtrace] = true +end + enable_json_logs = Gitlab.config.sidekiq.log_format == 'json' Sidekiq.configure_server do |config| |