From 2bc67a214643c538ef5b1243bb8d1ec6e217a0ed Mon Sep 17 00:00:00 2001 From: Edoardo Putti Date: Fri, 22 Sep 2017 16:14:23 +0200 Subject: [PATCH] format app name as string, enclose log message in string --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index 513b5e9..7489d1c 100755 --- a/server.py +++ b/server.py @@ -10,7 +10,7 @@ from functools import wraps app = Flask(__name__) -logfmt = logging.Formatter('time=%(asctime)s level=%(levelname)s app=%(name) msg=%(message)s') +logfmt = logging.Formatter('time=%(asctime)s level=%(levelname)s app=%(name)s msg="%(message)s"') logrotate = RotatingFileHandler( '/var/log/login/server',