Ensure we're using Rails, not Sidekiq::Rails
This commit is contained in:
parent
31fa96960f
commit
af9432643d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue