Commit bf5fcf7f authored by Stan Hu's avatar Stan Hu

Merge branch 'exclude-csrf-controller-from-logs' into 'master'

Exclude dummy CSRF controller from logs

Closes #198399

See merge request gitlab-org/gitlab!23693
parents aeda2685 8c52d47d
......@@ -15,6 +15,10 @@ unless Gitlab::Runtime.sidekiq?
data
end
# This isn't a user-reachable controller; we use it to check for a
# valid CSRF token in the API
config.lograge.ignore_actions = ['Gitlab::RequestForgeryProtection::Controller#index']
# Add request parameters to log output
config.lograge.custom_options = lambda do |event|
params = event.payload[:params]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment