mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-09-19 18:12:55 +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
@ -6,6 +6,7 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"net"
|
"net"
|
||||||
"reflect"
|
"reflect"
|
||||||
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/gorilla/websocket"
|
"github.com/gorilla/websocket"
|
||||||
@ -393,6 +394,8 @@ func (e *EventSubSocketClient) subscribe() error {
|
|||||||
}); err != nil {
|
}); err != nil {
|
||||||
return errors.Wrapf(err, "subscribing to %s/%s", st.Event, st.Version)
|
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
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user