From de738aa4583935a47d32dfcd5eea8038b05586c4 Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Wed, 20 Oct 2021 00:13:24 +0200 Subject: [PATCH] more logging improvements --- main.go | 1 + utils/utils.go | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) 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() }