Skip to content

Commit

Permalink
refactor: remove unnecessary logs
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasjarosch committed Nov 12, 2022
1 parent 668c3a1 commit 6486b5e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
5 changes: 0 additions & 5 deletions inventory.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package skipper

import (
"fmt"
"log"
"path/filepath"
"strings"

Expand Down Expand Up @@ -234,8 +233,6 @@ func (inv *Inventory) Data(targetName string, predefinedVariables map[string]int
}

for _, call := range calls {
log.Println("found call", call.FullName(), "at", call.Path(), "value", call.Execute())

// replace call with function result
// sourceValue is the value where the variable is. It needs to be replaced with an actual value
sourceValue, err := data.GetPath(call.Identifier...)
Expand Down Expand Up @@ -283,8 +280,6 @@ func (inv *Inventory) Data(targetName string, predefinedVariables map[string]int

// attempt load all secret files and replace the variables with the actual values if revealSecrets is true
for _, secret := range secrets {
log.Println("found secret", secret.FullName(), "at", secret.Path())

if !secret.Exists(inv.fs) {
return nil, fmt.Errorf("undefined secret '%s': file does not exist: %s", secret.FullName(), secret.SecretFile.Path)
}
Expand Down
3 changes: 0 additions & 3 deletions variable.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package skipper

import (
"fmt"
"log"
"regexp"
"strings"
)
Expand Down Expand Up @@ -160,8 +159,6 @@ func ReplaceVariables(data Data, classFiles []*Class, predefinedVariables map[st
return err
}

log.Println(len(variables))

if len(variables) == 0 {
break
}
Expand Down

0 comments on commit 6486b5e

Please sign in to comment.