mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-09-08 09:36:07 -05:00
Fix subscription handling and improve logging
* Revocations were not handled properly * Active subscriptions were not cleared on reconnect * Migration client handling could cause crash * Add error logging
This commit is contained in:
@@ -185,6 +185,11 @@ static RequestResult processResult(const httplib::Result &response,
|
||||
return result;
|
||||
}
|
||||
|
||||
if (response->status < 200 || response->status >= 300) {
|
||||
vblog(LOG_INFO, "Twitch API error response: %s",
|
||||
response->body.c_str());
|
||||
}
|
||||
|
||||
OBSDataAutoRelease replyData =
|
||||
obs_data_create_from_json(response->body.c_str());
|
||||
result.data = replyData;
|
||||
|
||||
Reference in New Issue
Block a user