mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Merge pull request #12715 from rioug/add-request-id-log
Add request_id to logs for production and staging
This commit is contained in:
@@ -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, {
|
||||
|
||||
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user