Merge pull request #12715 from rioug/add-request-id-log

Add request_id to logs for production and staging
This commit is contained in:
David Cook
2024-08-01 10:01:25 +10:00
committed by GitHub
2 changed files with 2 additions and 0 deletions

View File

@@ -40,6 +40,7 @@ Openfoodnetwork::Application.configure do
# 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, {

View File

@@ -40,6 +40,7 @@ Openfoodnetwork::Application.configure do
# 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, {