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 795a7ae commit 54ebf60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions designer/settings/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def get_env_setting(setting):
error_msg = "Set the [%s] env variable!" % setting
raise ImproperlyConfigured(error_msg)


def get_logger_config(log_dir='/var/tmp',
logging_env="no_env",
edx_filename="edx.log",
Expand Down Expand Up @@ -51,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': '[%(name)s] [user %(userid)s] [ip %(remoteip)s] %(filename)s:%(lineno)d - %(message)s',
},
'syslog_format': {'format': syslog_format},
'raw': {'format': '%(message)s'},
Expand Down

0 comments on commit 54ebf60

Please sign in to comment.