We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca3bbf5 commit a3b3cf9Copy full SHA for a3b3cf9
plugins/twitch/event-sub.cpp
@@ -426,8 +426,11 @@ void EventSub::HandleRevocation(obs_data_t *data)
426
void EventSub::OnClose(connection_hdl hdl)
427
{
428
EventSubWSClient::connection_ptr con = _client.get_con_from_hdl(hdl);
429
- auto msg = con->get_ec().message();
430
- blog(LOG_INFO, "Twitch EventSub connection closed: %s", msg.c_str());
+ const auto msg = con->get_ec().message();
+ const auto reason = con->get_remote_close_reason();
431
+ const auto code = con->get_remote_close_code();
432
+ blog(LOG_INFO, "Twitch EventSub connection closed: %s / %s (%d)",
433
+ msg.c_str(), reason.c_str(), code);
434
ClearActiveSubscriptions();
435
_connected = false;
436
}
0 commit comments