diff --git a/network-api/networkapi/settings.py b/network-api/networkapi/settings.py index ec7fae048cb..5fd625a448d 100644 --- a/network-api/networkapi/settings.py +++ b/network-api/networkapi/settings.py @@ -679,8 +679,8 @@ class DatabasesDict(TypedDict): "django.db.backends": {"handlers": ["debug-error"], "level": "ERROR"}, "django.utils.autoreload": {"handlers": ["debug-error"], "level": "ERROR"}, "networkapi": { - "handlers": ["debug"], - "level": "DEBUG", + "handlers": ["info"], + "level": "INFO", }, }, } diff --git a/network-api/networkapi/wagtailpages/templatetags/mini_site_tags.py b/network-api/networkapi/wagtailpages/templatetags/mini_site_tags.py index e88471242d5..998559bac78 100644 --- a/network-api/networkapi/wagtailpages/templatetags/mini_site_tags.py +++ b/network-api/networkapi/wagtailpages/templatetags/mini_site_tags.py @@ -1,4 +1,3 @@ -import logging from urllib.parse import parse_qsl, urlencode, urlparse, urlunparse from django import template @@ -10,8 +9,6 @@ register = template.Library() -logger = logging.getLogger(__name__) - # Instantiate a mini-site sidebar menu based on the current page's relation to other pages @register.inclusion_tag("wagtailpages/tags/mini_site_sidebar.html", takes_context=True) @@ -30,19 +27,12 @@ def _generate_thank_you_url(url): Generate a thank you page URL by grabbing the current url and appending thank_you=true """ - logger.debug(f'Generating "thank you URL" for {url}') - parsed_url = urlparse(url) - logger.debug(f"parsed_url: {parsed_url}") query_params = parse_qsl(parsed_url.query) - logger.debug(f"query_params: {query_params}") query_params.append(("thank_you", "true")) query_string = urlencode(query_params) - logger.debug(f"query_string: {query_string}") thank_you_url = urlunparse(parsed_url._replace(query=query_string)) - logger.debug(f'Generated "thank you URL": {thank_you_url}') - return thank_you_url