MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / LogActiveSubscriptions

Method LogActiveSubscriptions

plugins/twitch/event-sub.cpp:224–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224void EventSub::LogActiveSubscriptions() const
225{
226 if (!VerboseLoggingEnabled()) {
227 return;
228 }
229
230 if (_activeSubscriptions.empty()) {
231 blog(LOG_INFO, "Twitch EventSub active subscriptions: none");
232 return;
233 }
234
235 blog(LOG_INFO, "Twitch EventSub active subscriptions: %zu",
236 _activeSubscriptions.size());
237 for (const auto &sub : _activeSubscriptions) {
238 const char *type = obs_data_get_string(sub.data, "type");
239 blog(LOG_INFO, " id=%s type=%s", sub.id.c_str(),
240 type ? type : "");
241 }
242}
243
244std::string EventSub::AddEventSubscription(std::shared_ptr<TwitchToken> token,
245 Subscription subscription)

Callers 1

AddEventSubscriptionMethod · 0.80

Calls 4

VerboseLoggingEnabledFunction · 0.85
sizeMethod · 0.80
emptyMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected