diff --git a/cmd/tpapi/httpTemplates.go b/cmd/tpapi/httpTemplates.go index b5c676b..b48c32b 100644 --- a/cmd/tpapi/httpTemplates.go +++ b/cmd/tpapi/httpTemplates.go @@ -200,10 +200,11 @@ func tmpltTPlinkPost(w http.ResponseWriter, r *http.Request) { err := json.NewDecoder(r.Body).Decode(&payload) if err != nil { + log.Printf("[TRACE] Data received: %#v\n", r.Body) log.Printf("[INFO] Unable to parse payload from API call: %v\n", err) tmpltError(w, http.StatusInternalServerError, fmt.Sprintf("Unable to read info from device: %v\n", err)) return } log.Printf("[TRACE] Data received: %#v\n", payload) -} \ No newline at end of file +}