Skip to content

Commit

Permalink
add debug statements
Browse files Browse the repository at this point in the history
Signed-off-by: Pranav Singh <[email protected]>
  • Loading branch information
theBeginner86 committed Jan 1, 2025
1 parent 8223f2b commit 7b57386
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmd/kanvas-snapshot/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,13 @@ func GenerateSnapshot(contentID, assetLocation string, ghAccessToken string) err
return err
}
defer resp.Body.Close()
fmt.Println(resp.Status)
bdy, err := io.ReadAll(resp.Body)
if err != nil {
fmt.Println(err)
return err
}
fmt.Println(string(bdy))

return nil
}
Expand Down

0 comments on commit 7b57386

Please sign in to comment.