Skip to content

Commit

Permalink
Remove logging definition in example app about async concerns.
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-schilling committed Jul 16, 2024
1 parent b2a4faa commit 412fc12
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions example/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# Application definition

INSTALLED_APPS = [
*(["daphne"] if os.getenv("ASYNC_SERVER", False) else []),
*(["daphne"] if os.getenv("ASYNC_SERVER", False) else []), # noqa: FBT003
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
Expand Down Expand Up @@ -99,26 +99,3 @@
}

STATICFILES_DIRS = [os.path.join(BASE_DIR, "example", "static")]

LOGGING = {
"version": 1,
"disable_existing_loggers": False,
"handlers": {
"console": {
"class": "logging.StreamHandler",
},
},
"root": {
"handlers": ["console"],
"level": "WARNING",
},
"loggers": {
# Log when an asynchronous handler is adapted for middleware.
# See warning here: https://docs.djangoproject.com/en/4.2/topics/async/#async-views
"django.request": {
"handlers": ["console"],
"level": os.getenv("DJANGO_REQUEST_LOG_LEVEL", "INFO"),
"propagate": False,
},
},
}

0 comments on commit 412fc12

Please sign in to comment.