more logging improvements
This commit is contained in:
@@ -365,6 +365,9 @@ func (d *DemoMatchLoader) gcWorker(apiKey string, rl ratelimit.Limiter) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.Infof("[DL] Requesting match %d from GC", matchId)
|
||||||
|
t := time.Now()
|
||||||
|
|
||||||
matchDetails, err := d.getMatchDetails(demo.ShareCode)
|
matchDetails, err := d.getMatchDetails(demo.ShareCode)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Warningf("[DL] Failure to get match-details for %d from GC: %v", demo.MatchId, err)
|
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
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.Infof("[DL] Recieved matchdetails for match %d (%s)", matchId, time.Since(t))
|
||||||
|
|
||||||
matchZero := matchDetails.GetMatches()[0]
|
matchZero := matchDetails.GetMatches()[0]
|
||||||
lastRound := matchZero.GetRoundstatsall()[len(matchZero.Roundstatsall)-1]
|
lastRound := matchZero.GetRoundstatsall()[len(matchZero.Roundstatsall)-1]
|
||||||
var players []*ent.Player
|
var players []*ent.Player
|
||||||
|
Reference in New Issue
Block a user