Add log messages to GetUsers endpoint
This commit is contained in:
parent
b11a712ecc
commit
858c3c5adc
|
@ -41,6 +41,8 @@ func (u *Users) GetUsers(ctx context.Context, params *GetUsersParams) (*GetUsers
|
||||||
v, _ := query.Values(params)
|
v, _ := query.Values(params)
|
||||||
endpoint := u.baseUrl.ResolveReference(&url.URL{Path: "users", RawQuery: v.Encode()})
|
endpoint := u.baseUrl.ResolveReference(&url.URL{Path: "users", RawQuery: v.Encode()})
|
||||||
|
|
||||||
|
fmt.Printf("endpoint: %s\n", endpoint.String())
|
||||||
|
|
||||||
req, err := http.NewRequestWithContext(ctx, http.MethodGet, endpoint.String(), nil)
|
req, err := http.NewRequestWithContext(ctx, http.MethodGet, endpoint.String(), nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
Loading…
Reference in New Issue