diff options
| author | Aaron Chong <aaronjhchong@hotmail.com> | 2022-02-09 01:25:33 +0800 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-02-09 12:10:26 +0100 |
| commit | 2d472ad05c7fb2a5fe405be46af2062cdb5eaeee (patch) | |
| tree | cef43f134afe44fd89c697fcf9e669e6515ec81b /django | |
| parent | d35ce682e31ea4a86c2079c60721fae171f03d7c (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.py | 4 |
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 |
