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
|
|
@ -37,6 +37,11 @@ if config.session_enabled==True:
|
||||||
after_session()
|
after_session()
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
error_reporting=False
|
||||||
|
|
||||||
|
if hasattr(config, 'error_reporting'):
|
||||||
|
error_reporting=config.error_reporting
|
||||||
|
|
||||||
def prepare_app():
|
def prepare_app():
|
||||||
|
|
||||||
def print_memory():
|
def print_memory():
|
||||||
|
|
@ -62,6 +67,12 @@ def prepare_app():
|
||||||
|
|
||||||
set_timezone()
|
set_timezone()
|
||||||
|
|
||||||
|
if error_reporting:
|
||||||
|
from paramecio.citoplasma.error_reporting import ErrorReportingPlugin
|
||||||
|
|
||||||
|
app.install(ErrorReportingPlugin())
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Clean last slash
|
# Clean last slash
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue