Skip to content
Snippets Groups Projects
Unverified Commit 00adba69 authored by Jeremy Bowman's avatar Jeremy Bowman Committed by GitHub
Browse files

Stop logging deprecation warnings outside devstack (#23742)

The upgrade to Django 2.2 has caused a spike in production logging due to RemovedInDjango30Warning deprecation warnings. For now, turn off logging of DeprecationWarning, ImportWarning, and PendingDeprecationWarning whenever we're using WSGI (they'll continue to be logged in devstack). We may eventually want this behind an easily flipped toggle, but for now just remove it to get this resolved quickly.
parent 4ab436f4
Branches
Tags release-2020-04-16-15.19
No related merge requests found
......@@ -8,9 +8,6 @@ It exposes a module-level variable named ``application``. Django's
``WSGI_APPLICATION`` setting.
"""
from openedx.core.lib.logsettings import log_python_warnings
log_python_warnings()
# Patch the xml libs before anything else.
from safe_lxml import defuse_xml_libs
defuse_xml_libs()
......
......@@ -8,9 +8,6 @@ It exposes a module-level variable named ``application``. Django's
``WSGI_APPLICATION`` setting.
"""
from openedx.core.lib.logsettings import log_python_warnings
log_python_warnings()
# Patch the xml libs
from safe_lxml import defuse_xml_libs
defuse_xml_libs()
......
......@@ -5,9 +5,6 @@ This module contains the WSGI application used for Apache deployment.
It exposes a module-level variable named ``application``.
"""
from openedx.core.lib.logsettings import log_python_warnings
log_python_warnings()
# Patch the xml libs before anything else.
from safe_lxml import defuse_xml_libs
defuse_xml_libs()
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment