Improve logging of gain estimation errors
This commit is contained in:
parent
5e4c14c634
commit
0355ec1a54
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ func MyJSONTeam(t *Team, started bool) (interface{}, error) {
|
|||
if gain, err := e.EstimateGain(t, stime != nil); err == nil {
|
||||
exercice.Gain = int(gain * GlobalScoreCoefficient)
|
||||
} 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())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue