diff --git a/app/maillogger.py b/app/maillogger.py index 585cb295..10a046a4 100644 --- a/app/maillogger.py +++ b/app/maillogger.py @@ -41,7 +41,7 @@ class FlaskMailHTMLFormatter(logging.Formatter): formatted_exception = logging.Handler.formatException(self, exc_info) return FlaskMailHTMLFormatter.pre_template % ("Exception information", formatted_exception) def formatStack(self, stack_info): - return FlaskMailHTMLFormatter.pre_template % ("
%s", stack_info) + return FlaskMailHTMLFormatter.pre_template % ("
%s
", stack_info)
# see: https://github.com/python/cpython/blob/3.6/Lib/logging/__init__.py (class Handler)
@@ -100,7 +100,7 @@ Message:
%(message)s""" +
%(message)s
"""
import logging
mail_handler = FlaskMailHandler(mailer, subject_template)