[eventsub] Add debug logging for subscribed topics

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2023-05-21 16:01:22 +02:00
parent 79fb09469c
commit a136902d58
Signed by: luzifer
GPG Key ID: D91C3E91E4CAD6F5

View File

@ -6,6 +6,7 @@ import (
"io"
"net"
"reflect"
"strings"
"time"
"github.com/gorilla/websocket"
@ -393,6 +394,8 @@ func (e *EventSubSocketClient) subscribe() error {
}); err != nil {
return errors.Wrapf(err, "subscribing to %s/%s", st.Event, st.Version)
}
e.logger.WithField("topic", strings.Join([]string{st.Event, st.Version}, "/")).Debug("subscripted to topic")
}
return nil