Browse Source

moar debug

Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
master v0.0.8
Martyn 1 year ago
parent
commit
6f1f4d0750
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      internal/webserver/webserver.go

+ 6
- 0
internal/webserver/webserver.go View File

@ -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