auth logger for clients

added RpcVersion in auth loggers for both requests and events clients.
removed the check in baseclient auth function and returned the whole response.
This commit is contained in:
Adem
2023-06-23 01:48:45 +03:00
parent 24f8487d93
commit 468c63f697
3 changed files with 7 additions and 5 deletions

View File

@@ -27,8 +27,9 @@ class EventClient:
defaultkwargs = {"subs": Subs.LOW_VOLUME}
kwargs = defaultkwargs | kwargs
self.base_client = ObsClient(**kwargs)
if self.base_client.authenticate():
self.logger.info(f"Successfully identified {self} with the server")
auth_status = self.base_client.authenticate()
if auth_status:
self.logger.info(f"Successfully identified {self} with the server using rpcVersion:{auth_status['d']['negotiatedRpcVersion']}")
self.callback = Callback()
self.subscribe()