Skip to content

Commit

Permalink
remove log stmts
Browse files Browse the repository at this point in the history
  • Loading branch information
riteshnoronha committed Oct 3, 2024
1 parent 0f5f7c0 commit 5ef89a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
3 changes: 1 addition & 2 deletions pkg/assemble/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,10 @@ var defaultConfig = config{
}

func DefaultConfig() {
data, err := yaml.Marshal(&defaultConfig)
_, err := yaml.Marshal(&defaultConfig)
if err != nil {
log.Fatal(err)
}
fmt.Println(string(data))
}

// NewConfig: Creating a new configuration instance with default values.
Expand Down
3 changes: 0 additions & 3 deletions pkg/assemble/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package assemble

import (
"context"
"fmt"

"github.com/google/uuid"
)
Expand Down Expand Up @@ -55,8 +54,6 @@ func NewParams() *Params {
}

func Assemble(config *config) error {
fmt.Println("Config1: ", *config)

err := config.validate()
if err != nil {
return err
Expand Down
7 changes: 3 additions & 4 deletions pkg/dt/dt_interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,13 @@ func (dtP *Params) PopulateInputField(ctx context.Context) {

prj, err := dTrackClient.Project.Get(ctx, pid)
if err != nil {
log.Fatalf("Failed to get project: %s", err)
log.Fatalln("Failed to get project: %s", err)
}
fmt.Printf("ID: %s, Name: %s, Version: %s", prj.UUID, prj.Name, prj.Version)
fmt.Println()
log.Debugf("ID: %s, Name: %s, Version: %s", prj.UUID, prj.Name, prj.Version)

bom, err := dTrackClient.BOM.ExportProject(ctx, pid, dtrack.BOMFormatJSON, dtrack.BOMVariantInventory)
if err != nil {
log.Fatalf("Failed to export project: %s", err)
log.Fatalln("Failed to export project: %s", err)
}

fname := fmt.Sprintf("tmpfile-%s", pid)
Expand Down

0 comments on commit 5ef89a8

Please sign in to comment.