From 7f8875c6892713abb526ae2d342e5c59edddfd7c Mon Sep 17 00:00:00 2001 From: nggit <12218311+nggit@users.noreply.github.com> Date: Fri, 17 Nov 2023 12:49:28 +0700 Subject: [PATCH] more informative --- tremolo/http_server.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tremolo/http_server.py b/tremolo/http_server.py index 11f8083..d4a5399 100644 --- a/tremolo/http_server.py +++ b/tremolo/http_server.py @@ -73,6 +73,8 @@ async def _handle_middleware(self, func, options={}): return options if not isinstance(data, (bytes, bytearray, str, tuple)): + self.logger.info('middleware %s has exited with the connection ' + 'possibly left open', func.__name__) return if 'status' in options: @@ -132,6 +134,8 @@ async def _handle_response(self, func, options={}): return if not isinstance(data, (bytes, bytearray, str, tuple)): + self.logger.info('handler %s has exited with the connection ' + 'possibly left open', func.__name__) return status = self.response.get_status()