From 28513346bc24983a6a31146458ca34b2ec38aaec Mon Sep 17 00:00:00 2001 From: xenolf Date: Thu, 14 Apr 2016 04:33:26 +0200 Subject: [PATCH] Add json logging for debugging of #190 --- acme/http.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/acme/http.go b/acme/http.go index 410aead6..6625bb6b 100644 --- a/acme/http.go +++ b/acme/http.go @@ -93,6 +93,8 @@ func postJSON(j *jws, uri string, reqBody, respBody interface{}) (http.Header, e return nil, errors.New("Failed to marshal network message...") } + logf("[DEBUG] Attempting to post %s to %s", string(jsonBytes), uri) + resp, err := j.post(uri, jsonBytes) if err != nil { return nil, fmt.Errorf("Failed to post JWS message. -> %v", err)