From 779ff0ad10d2435849f5909640c88163ebc560e9 Mon Sep 17 00:00:00 2001 From: Cameron Moore Date: Tue, 24 Dec 2019 19:47:21 -0600 Subject: [PATCH] Fix XML error message --- webhook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webhook.go b/webhook.go index eb98f317..cce1fbdd 100644 --- a/webhook.go +++ b/webhook.go @@ -269,7 +269,7 @@ func hookHandler(w http.ResponseWriter, r *http.Request) { case strings.Contains(contentType, "xml"): payload, err = mxj.NewMapXmlReader(bytes.NewReader(body)) if err != nil { - log.Printf("[%s] error parsing JSON payload %+v\n", rid, err) + log.Printf("[%s] error parsing XML payload: %+v\n", rid, err) } default: log.Printf("[%s] error parsing body payload due to unsupported content type header: %s\n", rid, contentType)