forked from External/greenlight
Add IP Address to logs (#2602)
This commit is contained in:
parent
e8ea4972f3
commit
2a68b2d39a
|
@ -148,7 +148,7 @@ Rails.application.configure do
|
||||||
config.log_level = :info
|
config.log_level = :info
|
||||||
|
|
||||||
# Prepend all log lines with the following tags.
|
# 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"
|
if ENV["RAILS_LOG_TO_STDOUT"] == "true"
|
||||||
logger = ActiveSupport::Logger.new($stdout)
|
logger = ActiveSupport::Logger.new($stdout)
|
||||||
|
|
Loading…
Reference in New Issue