if defined?(Bullet)
  Rails.application.config.after_initialize do
    Bullet.enable = true

    # log to the Bullet log file (Rails.root/log/bullet.log)
    Bullet.bullet_logger = true

    # logging to Rails log file
    Bullet.rails_logger = false

    # Disable all other notifications
    Bullet.alert = false
    Bullet.console = false
    Bullet.sentry = false
    Bullet.honeybadger = false
    Bullet.bugsnag = false
    Bullet.appsignal = false
    Bullet.airbrake = false
    Bullet.rollbar = false
    Bullet.xmpp = false
    Bullet.raise = false
    Bullet.add_footer = false
    Bullet.skip_html_injection = true
  end
end
