summaryrefslogtreecommitdiff
path: root/config/environments/production.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/environments/production.rb')
-rw-r--r--config/environments/production.rb13
1 files changed, 11 insertions, 2 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb
index b56aadb8b11..202f6205c7f 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -65,8 +65,17 @@ Rails.application.configure do
# Enable threaded mode
# config.threadsafe! unless $rails_rake_task
- # Send deprecation notices to registered listeners
- config.active_support.deprecation = :notify
+ # Silence deprecation notices on production.
+ # See also config/initializers/00_deprecations.rb.
+ #
+ # Logging to `log/deprecation_json.log` can be enabled with
+ # `GITLAB_LOG_DEPRECATIONS=1`.
+ #
+ # See https://gitlab.com/gitlab-org/gitlab/-/issues/368379
+ config.active_support.deprecation = :silence
+
+ # Silence disallowed deprecations.
+ config.active_support.disallowed_deprecation = :silence
config.action_mailer.delivery_method = :sendmail
# Defaults to: