Add json logging for debugging of #190

This commit is contained in:
xenolf 2016-04-14 04:33:26 +02:00
parent 23e88185c2
commit 28513346bc

View file

@ -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)