Skip to content

Commit

Permalink
chore: Refactor logging format for Datadog pipeline integration
Browse files Browse the repository at this point in the history
  • Loading branch information
ilee2u committed Dec 19, 2024
1 parent 08242dd commit ba2bfad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions edx_exams/settings/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'},
Expand Down

0 comments on commit ba2bfad

Please sign in to comment.