Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Refactor logging format for Datadog pipeline integration #364

Merged
merged 2 commits into from
Dec 19, 2024

Conversation

ilee2u
Copy link
Member

@ilee2u ilee2u commented Dec 19, 2024

Ticket: https://2u-internal.atlassian.net/browse/COSMO-593

This PR modifies the logging configuration to align with the Datadog Python pipeline standards.
Adjusting logging format to ensure they are compatible with Datadog’s ingestion requirements.
Sets Django request logs to the INFO level to maintain optimal log verbosity and clarity.

Copy link

Coverage report

This PR does not seem to contain any modification to coverable code.

@@ -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',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you might have accidentally removed %(asctime)s %(levelname)s

@ilee2u ilee2u merged commit 2c263bc into master Dec 19, 2024
6 checks passed
@ilee2u ilee2u deleted the ilee2u/log_format branch December 19, 2024 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants