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.
This commit is contained in:
Jeremy Bowman
2020-04-16 13:54:07 -04:00
committed by GitHub
parent 4ab436f405
commit 00adba695c
3 changed files with 0 additions and 9 deletions

View File

@@ -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()

View File

@@ -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()

View File

@@ -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()