Added option for send mail if programming error

This commit is contained in:
Antonio de la Rosa 2018-06-14 21:57:55 +02:00
parent b9503d8bf8
commit fe6a21e1d7

View file

@ -37,6 +37,11 @@ if config.session_enabled==True:
after_session()
"""
error_reporting=False
if hasattr(config, 'error_reporting'):
error_reporting=config.error_reporting
def prepare_app():
def print_memory():
@ -62,6 +67,12 @@ def prepare_app():
set_timezone()
if error_reporting:
from paramecio.citoplasma.error_reporting import ErrorReportingPlugin
app.install(ErrorReportingPlugin())
# Clean last slash