From cb181fac3bc111a21a7364aa2bd6ea14aba706ed Mon Sep 17 00:00:00 2001 From: nadeemshahzad Date: Thu, 24 Oct 2024 10:21:51 +0500 Subject: [PATCH] chore: Refactor logging format for Datadog pipeline integration --- registrar/settings/utils.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/registrar/settings/utils.py b/registrar/settings/utils.py index 2bfc90a8..14919b18 100644 --- a/registrar/settings/utils.py +++ b/registrar/settings/utils.py @@ -52,8 +52,7 @@ def get_logger_config(log_dir='/var/tmp', 'disable_existing_loggers': False, 'formatters': { 'standard': { - 'format': '%(asctime)s %(levelname)s %(process)d ' - '[%(name)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'}, @@ -85,7 +84,7 @@ def get_logger_config(log_dir='/var/tmp', 'django.request': { 'handlers': handlers, 'propagate': True, - 'level': 'WARNING' + 'level': 'INFO' }, '': { 'handlers': handlers,