Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Re-add request ID tracking to API middleware (#2726)
Madison Swain-Bowdenc31c6a24c6aa
diff --git a/api/conf/settings/logging.py b/api/conf/settings/logging.pyindex 495827bd7..df0979b75 100644--- a/api/conf/settings/logging.py+++ b/api/conf/settings/logging.py@@ -17,6 +17,8 @@ DJANGO_DB_LOGGING = config("DJANGO_DB_LOGGING", cast=bool, default=False)# https://github.com/dabapps/django-log-request-id#logging-all-requestsLOG_REQUESTS = True+# https://github.com/dabapps/django-log-request-id+MIDDLEWARE.insert(0, "log_request_id.middleware.RequestIDMiddleware")# https://github.com/dabapps/django-log-request-id#installation-and-usageREQUEST_ID_RESPONSE_HEADER = "X-Request-Id"