diff --git a/config/environments/production.rb b/config/environments/production.rb index d6877e67e91..727598011ce 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -40,6 +40,7 @@ # Configure logging: config.log_formatter = Logger::Formatter.new.tap { |f| f.datetime_format = "%Y-%m-%d %H:%M:%S" } + config.log_tags = [:request_id] # Use a different cache store in production config.cache_store = :redis_cache_store, { diff --git a/config/environments/staging.rb b/config/environments/staging.rb index d6877e67e91..727598011ce 100644 --- a/config/environments/staging.rb +++ b/config/environments/staging.rb @@ -40,6 +40,7 @@ # Configure logging: config.log_formatter = Logger::Formatter.new.tap { |f| f.datetime_format = "%Y-%m-%d %H:%M:%S" } + config.log_tags = [:request_id] # Use a different cache store in production config.cache_store = :redis_cache_store, {