Mercurial > kallithea
changeset 7737:cbdc0c3a5406
config: change default .ini to always include trace_errors settings and thus avoid deprecation warnings
Gets rid of:
data/env/lib/python2.7/site-packages/tg/configuration/app_config.py:473
data/env/lib/python2.7/site-packages/tg/configuration/app_config.py:473: DeprecationWarning: direct usage of error tracing options has been deprecated, please specify them as trace_errors.option_name instad of directly setting option_name. EXAMPLE: trace_errors.error_email
"setting option_name. EXAMPLE: trace_errors.error_email", DeprecationWarning)
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Fri, 07 Jun 2019 03:37:07 +0200 |
parents | b0ed41df0282 |
children | bbf7be28a11e |
files | development.ini kallithea/lib/paster_commands/template.ini.mako |
diffstat | 2 files changed, 12 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/development.ini Fri Jun 07 03:37:07 2019 +0200 +++ b/development.ini Fri Jun 07 03:37:07 2019 +0200 @@ -303,6 +303,17 @@ #beaker.session.sa.url = postgresql://postgres:qwe@localhost/kallithea #beaker.session.table_name = db_session +############################ +## ERROR HANDLING SYSTEMS ## +############################ + +# Propagate email settings to ErrorReporter of TurboGears2 +# You do not normally need to change these lines +get trace_errors.error_email = email_to +get trace_errors.smtp_server = smtp_server +get trace_errors.smtp_port = smtp_port +get trace_errors.from_address = error_email_from + ################################################################################ ## WARNING: *DEBUG MODE MUST BE OFF IN A PRODUCTION ENVIRONMENT* ## ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
--- a/kallithea/lib/paster_commands/template.ini.mako Fri Jun 07 03:37:07 2019 +0200 +++ b/kallithea/lib/paster_commands/template.ini.mako Fri Jun 07 03:37:07 2019 +0200 @@ -399,7 +399,6 @@ #beaker.session.sa.url = postgresql://postgres:qwe@localhost/kallithea #beaker.session.table_name = db_session -%if error_aggregation_service == 'appenlight': <%text>############################</%text> <%text>## ERROR HANDLING SYSTEMS ##</%text> <%text>############################</%text> @@ -411,6 +410,7 @@ get trace_errors.smtp_port = smtp_port get trace_errors.from_address = error_email_from +%if error_aggregation_service == 'appenlight': <%text>####################</%text> <%text>### [appenlight] ###</%text> <%text>####################</%text>