Improve logging of gain estimation errors

This commit is contained in:
nemunaire 2022-02-03 17:36:59 +01:00
parent 5e4c14c634
commit 0355ec1a54

View file

@ -155,7 +155,7 @@ func MyJSONTeam(t *Team, started bool) (interface{}, error) {
if gain, err := e.EstimateGain(t, stime != nil); err == nil { if gain, err := e.EstimateGain(t, stime != nil); err == nil {
exercice.Gain = int(gain * GlobalScoreCoefficient) exercice.Gain = int(gain * GlobalScoreCoefficient)
} else { } else {
log.Println("ERROR during gain estimation:", err) log.Printf("ERROR during gain estimation (tid=%d ; eid=%d): %s", t.Id, e.Id, err.Error())
} }
} }