From 898e3d7bae4d6130879dcb9cb0baed07d09de0a3 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/edx_exams/settings/utils.py b/edx_exams/settings/utils.py index 58ebd0fc..0ca7b8dd 100644 --- a/edx_exams/settings/utils.py +++ b/edx_exams/settings/utils.py @@ -39,8 +39,8 @@ 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'},