mirror of
https://github.com/Luzifer/twitch-manager.git
synced 2024-11-14 12:02:41 +00:00
Log ignored follower
This commit is contained in:
parent
2d4f0be64b
commit
1302c073cd
1 changed files with 1 additions and 0 deletions
|
@ -79,6 +79,7 @@ func handleWebHookPush(w http.ResponseWriter, r *http.Request) {
|
||||||
sort.Slice(payload.Data, func(i, j int) bool { return payload.Data[i].FollowedAt.Before(payload.Data[j].FollowedAt) })
|
sort.Slice(payload.Data, func(i, j int) bool { return payload.Data[i].FollowedAt.Before(payload.Data[j].FollowedAt) })
|
||||||
for _, f := range payload.Data {
|
for _, f := range payload.Data {
|
||||||
if str.StringInSlice(f.FromName, store.Followers.Seen) {
|
if str.StringInSlice(f.FromName, store.Followers.Seen) {
|
||||||
|
logger.WithField("name", f.FromName).Debug("New follower already known, skipping")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue