Skip to content

Commit 412fc12

Browse files
committed
Remove logging definition in example app about async concerns.
1 parent b2a4faa commit 412fc12

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

example/settings.py

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# Application definition
1717

1818
INSTALLED_APPS = [
19-
*(["daphne"] if os.getenv("ASYNC_SERVER", False) else []),
19+
*(["daphne"] if os.getenv("ASYNC_SERVER", False) else []), # noqa: FBT003
2020
"django.contrib.admin",
2121
"django.contrib.auth",
2222
"django.contrib.contenttypes",
@@ -99,26 +99,3 @@
9999
}
100100

101101
STATICFILES_DIRS = [os.path.join(BASE_DIR, "example", "static")]
102-
103-
LOGGING = {
104-
"version": 1,
105-
"disable_existing_loggers": False,
106-
"handlers": {
107-
"console": {
108-
"class": "logging.StreamHandler",
109-
},
110-
},
111-
"root": {
112-
"handlers": ["console"],
113-
"level": "WARNING",
114-
},
115-
"loggers": {
116-
# Log when an asynchronous handler is adapted for middleware.
117-
# See warning here: https://docs.djangoproject.com/en/4.2/topics/async/#async-views
118-
"django.request": {
119-
"handlers": ["console"],
120-
"level": os.getenv("DJANGO_REQUEST_LOG_LEVEL", "INFO"),
121-
"propagate": False,
122-
},
123-
},
124-
}

0 commit comments

Comments
 (0)