Skip to content

Commit a1ff3ad

Browse files
author
pavel-z1
committed
Added debug of Request URL
1 parent 4fa2cd9 commit a1ff3ad

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module github.com/pavel-z1/phpipam-sdk-go

phpipam/request/request.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ func (r *Request) Send() error {
145145
return fmt.Errorf("Error preparing request data: %s", err)
146146
}
147147
buf := bytes.NewBuffer(bs)
148+
log.Printf("Request URL Debug ...................Method: %s, UR: %s/%s%s", r.Method, r.Session.Config.Endpoint, r.Session.Config.AppID, r.URI)
148149
req, err = http.NewRequest(r.Method, fmt.Sprintf("%s/%s%s", r.Session.Config.Endpoint, r.Session.Config.AppID, r.URI), buf)
149150
req.Header.Add("Content-Type", "application/json")
150151
default:

0 commit comments

Comments
 (0)