Skip to content
This repository was archived by the owner on Jan 15, 2024. It is now read-only.

Commit cebdee9

Browse files
author
Gordon Irving
committed
include method in debug output
1 parent 8ef34fa commit cebdee9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ func (c *Client) newRequest(method, requestPath string, query url.Values, body i
5353

5454
if os.Getenv("GF_LOG") != "" {
5555
if body == nil {
56-
log.Println("request to ", url.String(), "with no body data")
56+
log.Printf("request (%s) to %s with no body data", method, url.String())
5757
} else {
58-
log.Println("request to ", url.String(), "with body data", body.(*bytes.Buffer).String())
58+
log.Printf("request (%s) to %s with body data: %s", method, url.String(), body.(*bytes.Buffer).String())
5959
}
6060
}
6161

0 commit comments

Comments
 (0)