mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-20 11:51:17 +00:00
[eventsub] Add debug logging for subscribed topics
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
79fb09469c
commit
a136902d58
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue