Skip to content

Proxito: set logging to debug #9540

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

Merged
merged 1 commit into from
Aug 23, 2022
Merged
Changes from all commits
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
6 changes: 3 additions & 3 deletions readthedocs/proxito/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def _unresolve_domain(domain):
# Serve from the PUBLIC_DOMAIN, ensuring it looks like `foo.PUBLIC_DOMAIN`.
if public_domain == root_domain:
project_slug = subdomain
log.info("Public domain.", domain=domain)
log.debug("Public domain.", domain=domain)
return project_slug, None, False

# TODO: This can catch some possibly valid domains (docs.readthedocs.io.com) for example,
Expand All @@ -60,7 +60,7 @@ def _unresolve_domain(domain):
# Serve PR builds on external_domain host.
if external_domain == root_domain:
try:
log.info("External versions domain.", domain=domain)
log.debug("External versions domain.", domain=domain)
project_slug, _ = subdomain.rsplit("--", maxsplit=1)
return project_slug, None, True
except ValueError:
Expand All @@ -72,7 +72,7 @@ def _unresolve_domain(domain):
Domain.objects.filter(domain=domain).prefetch_related("project").first()
)
if domain_object:
log.info("Custom domain.", domain=domain)
log.debug("Custom domain.", domain=domain)
project_slug = domain_object.project.slug
return project_slug, domain_object, False

Expand Down