Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add lograge to improve logging #5423

Merged
merged 13 commits into from
Apr 7, 2023
Prev Previous commit
Next Next commit
chore: add remote_ip to lograge
  • Loading branch information
vishnu-narayanan committed Sep 15, 2022
commit c0857f329ef845e3fdfea5805837b18663ed1d75
1 change: 1 addition & 0 deletions config/initializers/lograge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
config.lograge.custom_payload do |controller|
{
host: controller.request.host,
remote_ip: controller.request.remote_ip,
user_id: controller.current_user.try(:id)
}
end
Expand Down