Skip to content

Commit

Permalink
Log RPC request for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
bbedward committed Nov 29, 2022
1 parent 1dfcbe2 commit b592c35
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ type RPCClient struct {
// Base request
func (client *RPCClient) MakeRequest(request interface{}) ([]byte, error) {
requestBody, _ := json.Marshal(request)
klog.Errorf("Making request %s", string(requestBody))
// HTTP post
httpRequest, err := http.NewRequest(http.MethodPost, client.Url, bytes.NewBuffer(requestBody))
if err != nil {
Expand Down

0 comments on commit b592c35

Please sign in to comment.