1
0
Fork 0
mirror of https://git.sr.ht/~ashkeel/strimertul synced 2024-09-18 01:50:50 +00:00

chore:Woops remove debug prints

This commit is contained in:
Ash Keel 2023-02-02 21:38:55 +01:00
parent b06ed39e6a
commit cf8fec3f4f
No known key found for this signature in database
GPG key ID: BAD8D93E7314ED3E

View file

@ -76,8 +76,6 @@ func (m *Manager) SetupTwitch() {
// If stream is confirmed offline, don't give points away!
isOnline := client.IsLive()
m.logger.Info("isOnline", zap.Bool("isOnline", isOnline))
if !isOnline {
continue
}
@ -97,7 +95,6 @@ func (m *Manager) SetupTwitch() {
First: "1000",
After: cursor,
})
m.logger.Info("res", zap.Any("data", res))
if err != nil {
m.logger.Error("could not retrieve list of chatters", zap.Error(err))
return
@ -111,10 +108,6 @@ func (m *Manager) SetupTwitch() {
}
}
m.logger.Info("awarding points")
m.logger.Info("eligible users", zap.String("list", strings.Join(users, ",")))
// Iterate for each user in the list
pointsToGive := make(map[string]int64)
for _, user := range users {