Skip to content

Commit

Permalink
remove prints
Browse files Browse the repository at this point in the history
  • Loading branch information
motatoes committed Feb 15, 2024
1 parent 7478430 commit 6f76059
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion cli/pkg/digger/digger.go
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,6 @@ func retrievePlanBeforeApply(planStorage storage.PlanStorage, planPathProvider e
if err != nil {
return "", fmt.Errorf("failed to retrieve stored plan path. %v", err)
}
fmt.Printf("Store plan path: %v", *storedPlanPath)
planBytes, err := os.ReadFile(*storedPlanPath)
if err != nil {
return "", fmt.Errorf("failed to read stored plan file. %v", err)
Expand Down
7 changes: 1 addition & 6 deletions cli/pkg/storage/plan_storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,6 @@ func (gps *GithubPlanStorage) StorePlanFile(fileContents []byte, artifactName st
}

func doRequest(method, url string, headers map[string]string, body []byte) (*http.Response, error) {
fmt.Printf("Sending request %v %v\n", method, url)

client := &http.Client{}
req, err := http.NewRequest(method, url, bytes.NewBuffer(body))
if err != nil {
Expand Down Expand Up @@ -255,7 +253,6 @@ func (gps *GithubPlanStorage) DownloadLatestPlans(storedPlanFilePath string) (st
}
filename := storedPlanFilePath + ".zip"

log.Printf("Download url received: %v", downloadUrl)
err = downloadArtifactIntoFile(downloadUrl, filename)

if err != nil {
Expand All @@ -267,13 +264,11 @@ func (gps *GithubPlanStorage) DownloadLatestPlans(storedPlanFilePath string) (st
func downloadArtifactIntoFile(artifactUrl *url.URL, outputFile string) error {

cmd := exec.Command("wget", "-O", outputFile, artifactUrl.String())
stdout, err := cmd.Output()
_, err := cmd.Output()
if err != nil {
return err
}

fmt.Printf("output of wget command: %v", string(stdout))

log.Printf("Successfully fetched plan artifact into %v", outputFile)

return nil
Expand Down
1 change: 0 additions & 1 deletion libs/orchestrator/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ func (svc GithubService) SetOutput(prNumber int, key string, value string) error
if err != nil {
return fmt.Errorf("could not open file for writing during digger step")
}
log.Printf("!!!Setting output: %v", fmt.Sprintf("%v=%v", key, value))
_, err = f.WriteString(fmt.Sprintf("%v=%v", key, value))
if err != nil {
return fmt.Errorf("could not write digger file step")
Expand Down

0 comments on commit 6f76059

Please sign in to comment.