correct log-level to error
This commit is contained in:
2
main.go
2
main.go
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user