Skip to content

Commit 5a0f3c6

Browse files
committed
add logs
1 parent 59da89b commit 5a0f3c6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

util/billing.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,20 @@ func getArcInstance(arcID string) (ArcInstance, error) {
7272
req.Header.Add("cache-control", "no-cache")
7373

7474
res, err := http.DefaultClient.Do(req)
75+
fmt.Println("Requesting:", url)
7576
if err != nil {
7677
log.Println("error while sending request: ", err)
7778
return response, err
7879
}
7980
defer res.Body.Close()
8081
body, err := ioutil.ReadAll(res.Body)
82+
fmt.Println("bODY:", body)
8183
if err != nil {
8284
log.Println("error reading res body: ", err)
8385
return response, err
8486
}
8587
err = json.Unmarshal(body, &response)
88+
fmt.Println("RESPONSE:", response)
8689

8790
if err != nil {
8891
log.Println("error while unmarshalling res body: ", err)

0 commit comments

Comments
 (0)