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:
WarmUpTill
2026-03-14 10:55:54 +01:00
committed by WarmUpTill
parent 2405b6dbbf
commit bf216e0917
3 changed files with 72 additions and 20 deletions

View File

@@ -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;