Skip to content

Commit 6235962

Browse files
committed
Improve client connection logging
1 parent 4ba2e79 commit 6235962

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

blinkpy/livestream.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,13 @@ async def join(self, client_reader, client_writer):
147147
# Read data from the client
148148
data = await client_reader.read(1024)
149149
if not data:
150+
_LOGGER.debug("Client disconnected")
150151
break
151152

152153
# Yield control to the event loop
153154
await asyncio.sleep(0)
154155
except ConnectionResetError:
155-
_LOGGER.debug("Client disconnected")
156+
_LOGGER.debug("Client connection reset")
156157
except Exception:
157158
_LOGGER.exception("Error while handling client")
158159
finally:

0 commit comments

Comments
 (0)