From cad3ea6658fd014f6a8aae5661fe548215bb1585 Mon Sep 17 00:00:00 2001 From: motatoes Date: Wed, 14 Aug 2024 12:49:55 +0100 Subject: [PATCH] add print statements --- ee/cli/pkg/drift/github_issue.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ee/cli/pkg/drift/github_issue.go b/ee/cli/pkg/drift/github_issue.go index d1bbdcaf7..7c288a8f8 100644 --- a/ee/cli/pkg/drift/github_issue.go +++ b/ee/cli/pkg/drift/github_issue.go @@ -25,12 +25,14 @@ func (ghi GithubIssueNotification) Send(projectName string, plan string) error { return item.Title == title }) if exists { + log.Printf("Issue found: %v", theIssue) _, err := (*ghi.GithubService).UpdateIssue(theIssue.ID, theIssue.Title, theIssue.Body) if err != nil { log.Printf("error while updating issue: %v", err) } return err } else { + log.Printf("Issue NOT found: %v", theIssue) _, err := (*ghi.GithubService).PublishIssue(title, message) if err != nil { log.Printf("error while publishing issue: %v", err)