From 2a68b2d39a7476944c770a9730b2aaf199ffed83 Mon Sep 17 00:00:00 2001 From: Ahmad Farhat Date: Tue, 23 Mar 2021 18:20:48 -0400 Subject: [PATCH] Add IP Address to logs (#2602) --- config/environments/production.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 12e84b39..a785ef55 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -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)