-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
Currently, a warning is generated whenever an exception is raised in a future on Windows
Line 44 in e513b30
self._logger.warning('Event callback failed', exc_info=sys.exc_info()) |
Can we downgrade this to a debug message?
e.g. consider something like
while True:
# try to connect to server
while True:
try:
self.reader, self.writer = \
await asyncio.open_connection(host, port)
break
except ConnetionError:
# server isn't ready yet, retry in 10s
await asyncio.sleep(10)
while True:
try:
line = await self.reader.readline()
# do something
except ConnectionError:
# server down, try to reconnect
break
All exceptions here are caught and handled, so there is nothing that warrants quamash generating a warning in the log (it should be up to the user to log server disconnects if they feel it's worth it).
Metadata
Metadata
Assignees
Labels
No labels