more logging improvements

This commit is contained in:
2021-10-20 00:13:24 +02:00
parent df33974b49
commit de738aa458
2 changed files with 1 additions and 2 deletions

View File

@@ -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)

View File

@@ -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()
}