From ba2bfade8a9975210271b99f272091698526e78a Mon Sep 17 00:00:00 2001 From: ilee2u Date: Thu, 19 Dec 2024 15:02:45 -0500 Subject: [PATCH] chore: Refactor logging format for Datadog pipeline integration --- edx_exams/settings/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/edx_exams/settings/utils.py b/edx_exams/settings/utils.py index 58ebd0fc..854a81cf 100644 --- a/edx_exams/settings/utils.py +++ b/edx_exams/settings/utils.py @@ -39,8 +39,7 @@ def get_logger_config(logging_env="no_env", 'disable_existing_loggers': False, 'formatters': { 'standard': { - 'format': '%(asctime)s %(levelname)s %(process)d ' - '[%(name)s] [user %(userid)s] [ip %(remoteip)s] %(filename)s:%(lineno)d - %(message)s', + 'format': '%(asctime)s %(levelname)s [%(name)s] [%(filename)s:%(lineno)d] [dd.trace_id=%(dd.trace_id)s dd.span_id=%(dd.span_id)s] - %(message)s', }, 'syslog_format': {'format': syslog_format}, 'raw': {'format': '%(message)s'},