diff --git a/main.go b/main.go index b17e876..b6f96ed 100644 --- a/main.go +++ b/main.go @@ -66,6 +66,7 @@ func housekeeping() { } if len(tPlayerNeedSteamUpdate) > 0 { + log.Infof("[HK] Refreshing %d profiles from steam", len(tPlayerNeedSteamUpdate)) _, err = utils.UpdatePlayerFromSteam(tPlayerNeedSteamUpdate, db.Client, conf.Steam.APIKey, db.Lock, rL) if err != nil { log.Warningf("[HK] Unable to update profiles from steam: %v", err) diff --git a/utils/utils.go b/utils/utils.go index 522d83c..5b8509e 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -442,8 +442,6 @@ func UpdatePlayerFromSteam(players []*ent.Player, db *ent.Client, apiKey string, idsToUpdate = append(idsToUpdate, updatePlayer.ID) } - log.Infof("[STEAM] Getting %d profiles from steam", len(idsToUpdate)) - if rl != nil { rl.Take() }