Ensure we're using Rails, not Sidekiq::Rails

This commit is contained in:
Ash McKenzie 2018-05-04 15:56:46 +10:00
parent 31fa96960f
commit af9432643d
1 changed files with 1 additions and 1 deletions

View File

@ -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