2021-02-03 16:09:17 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2021-04-19 11:09:08 -04:00
|
|
|
if Gitlab::Bullet.configure_bullet?
|
2017-03-27 13:28:34 -04:00
|
|
|
Rails.application.configure do
|
|
|
|
config.after_initialize do
|
|
|
|
Bullet.enable = true
|
2015-10-13 05:54:06 -04:00
|
|
|
|
2021-04-19 11:09:08 -04:00
|
|
|
if Gitlab::Bullet.extra_logging_enabled?
|
|
|
|
Bullet.bullet_logger = true
|
|
|
|
Bullet.console = true
|
|
|
|
end
|
2020-05-21 20:08:07 -04:00
|
|
|
|
2017-03-27 13:28:34 -04:00
|
|
|
Bullet.raise = Rails.env.test?
|
2021-04-19 11:09:08 -04:00
|
|
|
|
|
|
|
Bullet.stacktrace_excludes = Gitlab::Bullet::Exclusions.new.execute
|
2017-03-27 13:28:34 -04:00
|
|
|
end
|
|
|
|
end
|
2015-10-13 05:54:06 -04:00
|
|
|
end
|