diff --git a/csgo/demo_loader.go b/csgo/demo_loader.go index 824952f..d61d7bd 100644 --- a/csgo/demo_loader.go +++ b/csgo/demo_loader.go @@ -365,6 +365,9 @@ func (d *DemoMatchLoader) gcWorker(apiKey string, rl ratelimit.Limiter) { continue } + log.Infof("[DL] Requesting match %d from GC", matchId) + t := time.Now() + matchDetails, err := d.getMatchDetails(demo.ShareCode) if err != nil { log.Warningf("[DL] Failure to get match-details for %d from GC: %v", demo.MatchId, err) @@ -374,6 +377,8 @@ func (d *DemoMatchLoader) gcWorker(apiKey string, rl ratelimit.Limiter) { continue } + log.Infof("[DL] Recieved matchdetails for match %d (%s)", matchId, time.Since(t)) + matchZero := matchDetails.GetMatches()[0] lastRound := matchZero.GetRoundstatsall()[len(matchZero.Roundstatsall)-1] var players []*ent.Player