From 64145875800eb235f1ad6a2d9953b52a880902f3 Mon Sep 17 00:00:00 2001 From: The_Spider Date: Mon, 10 Jan 2022 10:29:29 -0600 Subject: [PATCH] output needs to be a string --- cmd/tpapi/httpTemplates.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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