Skip to content

Commit

Permalink
Also log referrer; compact nils
Browse files Browse the repository at this point in the history
  • Loading branch information
cavis committed Mar 19, 2024
1 parent e10688e commit 8b725ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,9 @@ def call(severity, time, progname, data)
params: controller.request.params.except(*exclude),
user_agent: controller.request.user_agent,
user_id: controller.try(:api_admin_token?) ? "admin-token" : controller.prx_auth_token&.user_id&.to_i,
user_ip: controller.request.ip
}
user_ip: controller.request.ip,
user_ref: controller.request.referrer
}.compact
end

config.lograge.ignore_custom = lambda do |event|
Expand Down

0 comments on commit 8b725ec

Please sign in to comment.