summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorAaron Chong <aaronjhchong@hotmail.com>2022-02-09 01:25:33 +0800
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-02-09 12:10:26 +0100
commit2d472ad05c7fb2a5fe405be46af2062cdb5eaeee (patch)
treecef43f134afe44fd89c697fcf9e669e6515ec81b /django
parentd35ce682e31ea4a86c2079c60721fae171f03d7c (diff)
Fixed #33495 -- Improved debug logging message about adapting handlers for middlewares.
It's the wrapped handler that's adapted to the wrapping middleware.
Diffstat (limited to 'django')
-rw-r--r--django/core/handlers/base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/core/handlers/base.py b/django/core/handlers/base.py
index 0f341a5328..caee168cbf 100644
--- a/django/core/handlers/base.py
+++ b/django/core/handlers/base.py
@@ -125,11 +125,11 @@ class BaseHandler:
if is_async:
if not method_is_async:
if debug:
- logger.debug("Synchronous %s adapted.", name)
+ logger.debug("Synchronous handler adapted for %s.", name)
return sync_to_async(method, thread_sensitive=True)
elif method_is_async:
if debug:
- logger.debug("Asynchronous %s adapted.", name)
+ logger.debug("Asynchronous handler adapted for %s.", name)
return async_to_sync(method)
return method