Skip to content

Commit 3737542

Browse files
committed
Add some logging
1 parent f8e1a30 commit 3737542

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

twitchio/ext/oauth_relay/oauth.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ async def fetch_token(self, code: str, *, redirect: str) -> None:
8989
resp._user_id = validated.user_id
9090
resp._user_login = validated.login
9191

92+
LOGGER.info("Dispatched 'event_oauth_authorized' from OAuth-Relay for user: %s | %s", resp.user_login, resp.user_id)
9293
self.client.dispatch(event="oauth_authorized", payload=resp)
9394

9495
async def connect(self) -> None:
@@ -99,6 +100,8 @@ async def connect(self) -> None:
99100
self._socket = socket
100101
self._connected.set()
101102

103+
LOGGER.info("Successfully connected to OAuth-Relay.")
104+
102105
async def reconnect(self) -> None:
103106
self._connected.clear()
104107

0 commit comments

Comments
 (0)