improved logging

This commit is contained in:
2021-11-16 14:06:52 +01:00
parent 314b3c5067
commit 85b38b07c1

View File

@@ -290,7 +290,7 @@ func getPlayer(w http.ResponseWriter, r *http.Request) {
tPlayer, err := utils.Player(db, id, conf.Steam.APIKey, nil) tPlayer, err := utils.Player(db, id, conf.Steam.APIKey, nil)
if err != nil || tPlayer == nil { if err != nil || tPlayer == nil {
log.Infof("[GP] Player not found: %+v", err) log.Infof("[GP] Player %s not found (%+v)", id, err)
w.WriteHeader(http.StatusNotFound) w.WriteHeader(http.StatusNotFound)
return return
} }