Add IP Address to logs (#2602)

This commit is contained in:
Ahmad Farhat 2021-03-23 18:20:48 -04:00 committed by GitHub
parent e8ea4972f3
commit 2a68b2d39a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ Rails.application.configure do
config.log_level = :info
# Prepend all log lines with the following tags.
config.log_tags = [:request_id]
config.log_tags = [:request_id, :remote_ip]
if ENV["RAILS_LOG_TO_STDOUT"] == "true"
logger = ActiveSupport::Logger.new($stdout)