Filter :email field logging only in production env

This commit is contained in:
2026-04-30 18:26:43 +02:00
parent 3454d3052b
commit c4def9cd86
2 changed files with 4 additions and 1 deletions

View File

@@ -80,4 +80,7 @@ Rails.application.configure do
#
# Skip DNS rebinding protection for the default health check endpoint.
# config.host_authorization = { exclude: ->(request) { request.path == "/up" } }
# Protect e-mail addresses from being logged only in production.
config.filter_parameters += [:email]
end