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

feat(logs): make celery logs structured #17603

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
feat(logs): make celery logs structured
JacobCoffee committed Feb 13, 2025

Verified

This commit was signed with the committer’s verified signature.
commit 47639ed4a73d6aeac10c25e1a8d8c8e0078ba747
15 changes: 15 additions & 0 deletions warehouse/logging.py
Original file line number Diff line number Diff line change
@@ -83,6 +83,21 @@ def includeme(config):
"handlers": ["primary"],
"level": config.registry.settings.get("logging.level", "INFO"),
},
"celery": {
"propagate": False,
"handlers": ["primary"],
"level": config.registry.settings.get("logging.level", "INFO"),
},
"celery.task": {
"propagate": False,
"handlers": ["primary"],
"level": config.registry.settings.get("logging.level", "INFO"),
},
"celery.worker": {
"propagate": False,
"handlers": ["primary"],
"level": config.registry.settings.get("logging.level", "INFO"),
},
},
"root": {
"level": config.registry.settings.get("logging.level", "INFO"),