Skip to content

Commit

Permalink
Change logging format to %s
Browse files Browse the repository at this point in the history
  • Loading branch information
ahopkins committed Mar 20, 2023
1 parent 8f265b8 commit ab30a43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sanic/log.py
Expand Up @@ -62,13 +62,13 @@ class StrEnum(str, Enum):
},
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",
},
Expand Down

0 comments on commit ab30a43

Please sign in to comment.