| 222 | } |
| 223 | |
| 224 | void 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 | |
| 244 | std::string EventSub::AddEventSubscription(std::shared_ptr<TwitchToken> token, |
| 245 | Subscription subscription) |
no test coverage detected