# Interceptor in lib/disable_email_interceptor.rb
ActionMailer::Base.register_interceptor(DisableEmailInterceptor) unless Gitlab.config.gitlab.email_enabled

# Interceptor in lib/disable_email_interceptor.rb
unless Gitlab.config.gitlab.email_enabled
  ActionMailer::Base.register_interceptor(DisableEmailInterceptor)
  ActionMailer::Base.logger = nil
end

Disable the action mailer base logging when emails are disabled
44790: Disable the action mailer base logging when emails are disabled
