Fix debug

Signed-off-by: Pierre-Emmanuel Jacquier <15922119+pierre-emmanuelJ@users.noreply.github.com>
This commit is contained in:
Pierre-Emmanuel Jacquier
2022-01-06 11:15:45 +00:00
parent 59d781a4e2
commit 419d594f83

View File

@@ -349,8 +349,7 @@ func (c *XtreamClient) sendRequest(action string, parameters url.Values) ([]byte
data := buf.Bytes()
if _, ok := os.LookupEnv("XTREAM_DEBUG"); ok {
j, _ := json.MarshalIndent(data, "", " ")
log.Println(string(j))
log.Println(string(data))
}
return data, nil