moar debug

Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
master v0.0.8
Martyn 2 years ago
parent
commit
6f1f4d0750
  1. 6
      internal/webserver/webserver.go

6
internal/webserver/webserver.go

@ -262,6 +262,12 @@ func TwitchAdminHandler(response http.ResponseWriter, request *http.Request) {
response.Header().Add("Content-type", "text/plain")
fmt.Fprint(response, "ERROR: Twitch returned not 1 user for the request!\n---\n")
fmt.Fprint(response, usersObject.Data)
fmt.Fprint(response, "\n---\n")
fmt.Fprint(response, body)
fmt.Fprint(response, "\n---\n")
fmt.Fprint(response, usersResponse)
fmt.Fprint(response, "\n---\n")
fmt.Fprint(response, usersObject)
return
}

Loading…
Cancel
Save