Skip to content

Commit

Permalink
chore: Refactor logging format for Datadog pipeline integration (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
nadeemshahzad authored Oct 24, 2024
1 parent 0ead57c commit 226715d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions registrar/settings/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'},
Expand Down Expand Up @@ -85,7 +84,7 @@ def get_logger_config(log_dir='/var/tmp',
'django.request': {
'handlers': handlers,
'propagate': True,
'level': 'WARNING'
'level': 'INFO'
},
'': {
'handlers': handlers,
Expand Down

0 comments on commit 226715d

Please sign in to comment.