Skip to content

Commit

Permalink
more informative
Browse files Browse the repository at this point in the history
  • Loading branch information
nggit committed Nov 17, 2023
1 parent 2f16c98 commit 7f8875c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tremolo/http_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 7f8875c

Please sign in to comment.