correct log-level to error

This commit is contained in:
2021-10-07 21:19:26 +02:00
parent 62d8d16fc9
commit 2822aed294

View File

@@ -174,7 +174,7 @@ func getPlayer(w http.ResponseWriter, r *http.Request) {
wins, ties, losses, err := utils.GetMatchStats(db.Client, db.Lock, tPlayer)
if err != nil {
log.Debugf("[GP] Error retrieving match-stats for player %s: %v", id, err)
log.Errorf("[GP] Error retrieving match-stats for player %s: %v", id, err)
w.WriteHeader(http.StatusInternalServerError)
return
}