From b596d20e2b7d21ca913dd0c8807d5088c771e8d1 Mon Sep 17 00:00:00 2001 From: Alex Dusenbery Date: Thu, 11 Apr 2024 15:14:14 -0400 Subject: [PATCH] feat: don't log all requests via django-log-request-id LOG_REQUESTS is a django-log-request-id that simply adds a (useless) log.info() for every request receives. This accounts for nearly half of all our logging in this service, and isn't useful. The request_id will still be present in response headers without this setting enabled. --- license_manager/settings/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/license_manager/settings/base.py b/license_manager/settings/base.py index d0a6b687..0d8cd6bc 100644 --- a/license_manager/settings/base.py +++ b/license_manager/settings/base.py @@ -106,7 +106,7 @@ GENERATE_REQUEST_ID_IF_NOT_IN_HEADER = False REQUEST_ID_RESPONSE_HEADER = "X-Request-ID" NO_REQUEST_ID = "None" -LOG_REQUESTS = True +LOG_REQUESTS = False # Enable CORS CORS_ALLOW_CREDENTIALS = True