debian-mirror-gitlab/lib/gitlab/bullet.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
340 B
Ruby
Raw Normal View History

2021-04-29 21:17:54 +05:30
# frozen_string_literal: true
module Gitlab
module Bullet
extend self
def enabled?
Gitlab::Utils.to_boolean(ENV['ENABLE_BULLET'], default: false)
end
alias_method :extra_logging_enabled?, :enabled?
def configure_bullet?
2023-03-04 22:38:38 +05:30
defined?(::Bullet) && (enabled? || Gitlab.config.bullet.enabled)
2021-04-29 21:17:54 +05:30
end
end
end