diff --git a/cmd/tpapi/httpTemplates.go b/cmd/tpapi/httpTemplates.go index 4548be1..c251293 100644 --- a/cmd/tpapi/httpTemplates.go +++ b/cmd/tpapi/httpTemplates.go @@ -213,7 +213,7 @@ func tmpltTPlinkPost(w http.ResponseWriter, r *http.Request) { // unmarshal body err = json.Unmarshal(b, &payload) if err != nil { - log.Printf("[TRACE] Data received: %#v\n", string(b)) + log.Printf("[TRACE] Data received:\n--START--\n%s\n--END--\n", string(b)) 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