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

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)