From a245ab37733411fab555c5ea602833e713eae4f2 Mon Sep 17 00:00:00 2001 From: Adam Hopkins Date: Mon, 20 Mar 2023 13:25:06 +0200 Subject: [PATCH] Change logging format to %s (#2721) --- sanic/log.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sanic/log.py b/sanic/log.py index f6781e6d..f234a0ef 100644 --- a/sanic/log.py +++ b/sanic/log.py @@ -62,13 +62,13 @@ LOGGING_CONFIG_DEFAULTS: Dict[str, Any] = dict( # no cov }, formatters={ "generic": { - "format": "%(asctime)s [%(process)d] [%(levelname)s] %(message)s", + "format": "%(asctime)s [%(process)s] [%(levelname)s] %(message)s", "datefmt": "[%Y-%m-%d %H:%M:%S %z]", "class": "logging.Formatter", }, "access": { "format": "%(asctime)s - (%(name)s)[%(levelname)s][%(host)s]: " - + "%(request)s %(message)s %(status)d %(byte)d", + + "%(request)s %(message)s %(status)s %(byte)s", "datefmt": "[%Y-%m-%d %H:%M:%S %z]", "class": "logging.Formatter", },