more logging improvements
This commit is contained in:
1
main.go
1
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)
|
||||
|
@@ -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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user