Skip to content

Commit e1768c1

Browse files
author
clickingbuttons
authored
Log expection message (#253)
1 parent 9481d97 commit e1768c1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

polygon/websocket/__init__.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,11 @@ async def connect(
132132

133133
if len(cmsg) > 0:
134134
await processor(cmsg) # type: ignore
135-
except ConnectionClosedOK:
136-
logger.debug("connection closed (OK)")
135+
except ConnectionClosedOK as e:
136+
logger.debug("connection closed (OK): %s", e)
137137
return
138-
except ConnectionClosedError:
139-
logger.debug("connection closed (ERR)")
138+
except ConnectionClosedError as e:
139+
logger.debug("connection closed (ERR): %s", e)
140140
reconnects += 1
141141
self.scheduled_subs = set(self.subs)
142142
self.subs = set()

0 commit comments

Comments
 (0)