diff options
author | Ash McKenzie <amckenzie@gitlab.com> | 2018-05-04 08:56:46 +0300 |
---|---|---|
committer | Ash McKenzie <amckenzie@gitlab.com> | 2018-05-04 08:58:18 +0300 |
commit | af9432643dd49fde165cf2dd2bdfb956c5cbfddf (patch) | |
tree | 642df3f9851db69dd6821b56ab5bdcfad3cbbf53 /config | |
parent | 31fa96960f7d224a1da4ca1cf1520a657558567d (diff) |
Ensure we're using Rails, not Sidekiq::Rails
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/forbid_sidekiq_in_transactions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/forbid_sidekiq_in_transactions.rb b/config/initializers/forbid_sidekiq_in_transactions.rb index 4603123665d..deb94d7dbce 100644 --- a/config/initializers/forbid_sidekiq_in_transactions.rb +++ b/config/initializers/forbid_sidekiq_in_transactions.rb @@ -27,7 +27,7 @@ module Sidekiq Use an `after_commit` hook, or include `AfterCommitQueue` and use a `run_after_commit` block instead. MSG rescue Sidekiq::Worker::EnqueueFromTransactionError => e - Rails.logger.error(e.message) if Rails.env.production? + ::Rails.logger.error(e.message) if ::Rails.env.production? Gitlab::Sentry.track_exception(e) end end |