Skip to content

Commit 592c108

Browse files
committed
Logging: disable nice formatter
This is an example to show that disabling the nice formatter, reduces the response time and SQL queries executed when there is a `TemplateSyntaxError`. See #10954
1 parent dd908ef commit 592c108

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

readthedocs/settings/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ def DOCKER_LIMITS(self):
901901
'console': {
902902
'level': 'INFO',
903903
'class': 'logging.StreamHandler',
904-
'formatter': 'plain_console',
904+
'formatter': 'default',
905905
},
906906
'debug': {
907907
'level': 'DEBUG',

readthedocs/settings/docker_compose.py

-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ def LOGGING(self):
102102
# Allow Sphinx and other tools to create loggers
103103
logging["disable_existing_loggers"] = False
104104

105-
logging["handlers"]["console"]["formatter"] = "colored_console"
106105
logging["loggers"].update(
107106
{
108107
# Disable Django access requests logging (e.g. GET /path/to/url)

0 commit comments

Comments
 (0)