From 3574956193e14a8964519064e74564c898256b72 Mon Sep 17 00:00:00 2001 From: Arthur Shvarts Date: Fri, 13 Dec 2024 09:01:49 -0500 Subject: [PATCH] Add logging around generating diff comment (#44) --- internal/pkg/githubapi/github.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/pkg/githubapi/github.go b/internal/pkg/githubapi/github.go index 96bc94a..99b02ae 100644 --- a/internal/pkg/githubapi/github.go +++ b/internal/pkg/githubapi/github.go @@ -261,7 +261,8 @@ func handleChangedPREvent(ctx context.Context, mainGithubClientPair GhClientPair } diffCommentData.DisplaySyncBranchCheckBox = shouldSyncBranchCheckBoxBeDisplayed(componentPathList, config.Argocd.AllowSyncfromBranchPathRegex, diffOfChangedComponents) - + componentsToDiffJSON, _ := json.Marshal(componentsToDiff) + log.Infof("Generating ArgoCD Diff Comment for components: %+v, length of diff elements: %d", string(componentsToDiffJSON), len(diffCommentData.DiffOfChangedComponents)) comments, err := generateArgoCdDiffComments(diffCommentData, githubCommentMaxSize) if err != nil { return fmt.Errorf("generate diff comment: %w", err)