[eventsub] Add status field to poll_end event

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2023-06-05 22:55:45 +02:00
parent 620a44282a
commit 217545fc68
Signed by: luzifer
GPG Key ID: D91C3E91E4CAD6F5

View File

@ -279,6 +279,7 @@ func (t *twitchWatcher) handleEventSubChannelPollChange(event *string) func(json
logger.Info("Poll started") logger.Info("Poll started")
case eventTypePollEnd: case eventTypePollEnd:
fields.Set("status", payload.Status)
logger.WithField("status", payload.Status).Info("Poll ended") logger.WithField("status", payload.Status).Info("Poll ended")
case eventTypePollProgress: case eventTypePollProgress: