Skip to content

Commit

Permalink
Log expection message (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
clickingbuttons authored Jul 22, 2022
1 parent 9481d97 commit e1768c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions polygon/websocket/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,11 @@ async def connect(

if len(cmsg) > 0:
await processor(cmsg) # type: ignore
except ConnectionClosedOK:
logger.debug("connection closed (OK)")
except ConnectionClosedOK as e:
logger.debug("connection closed (OK): %s", e)
return
except ConnectionClosedError:
logger.debug("connection closed (ERR)")
except ConnectionClosedError as e:
logger.debug("connection closed (ERR): %s", e)
reconnects += 1
self.scheduled_subs = set(self.subs)
self.subs = set()
Expand Down

0 comments on commit e1768c1

Please sign in to comment.