PLAT-1350 Log Python warnings in production

This commit is contained in:
Jeremy Bowman
2018-01-26 14:16:28 -05:00
parent 1eb8b3a9a0
commit 5ca1a51460
5 changed files with 46 additions and 4 deletions

View File

@@ -4,6 +4,10 @@ Apache WSGI file for LMS
This module contains the WSGI application used for Apache deployment.
It exposes a module-level variable named ``application``.
"""
from __future__ import absolute_import
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