forked from TrueCloudLab/lego
Add json logging for debugging of #190
This commit is contained in:
parent
23e88185c2
commit
28513346bc
1 changed files with 2 additions and 0 deletions
|
@ -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...")
|
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)
|
resp, err := j.post(uri, jsonBytes)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("Failed to post JWS message. -> %v", err)
|
return nil, fmt.Errorf("Failed to post JWS message. -> %v", err)
|
||||||
|
|
Loading…
Reference in a new issue