From 7b57386e69f7c2c896817b51c9152a6d29289c07 Mon Sep 17 00:00:00 2001 From: Pranav Singh Date: Wed, 1 Jan 2025 22:25:08 +0530 Subject: [PATCH] add debug statements Signed-off-by: Pranav Singh --- cmd/kanvas-snapshot/cmd.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmd/kanvas-snapshot/cmd.go b/cmd/kanvas-snapshot/cmd.go index c69645e349..032679c652 100644 --- a/cmd/kanvas-snapshot/cmd.go +++ b/cmd/kanvas-snapshot/cmd.go @@ -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 }