Added option for send mail if programming error
This commit is contained in:
parent
b9503d8bf8
commit
fe6a21e1d7
1 changed files with 11 additions and 0 deletions
|
|
@ -36,6 +36,11 @@ if config.session_enabled==True:
|
|||
def clean_session():
|
||||
after_session()
|
||||
"""
|
||||
|
||||
error_reporting=False
|
||||
|
||||
if hasattr(config, 'error_reporting'):
|
||||
error_reporting=config.error_reporting
|
||||
|
||||
def prepare_app():
|
||||
|
||||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue