Skip to content

Commit

Permalink
remove temp debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
rsafonseca committed Aug 2, 2023
1 parent 91e94ea commit 21b7dc9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions config/viper_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
package config

import (
"fmt"
"github.com/mitchellh/mapstructure"
"reflect"
"strings"
Expand Down Expand Up @@ -211,16 +210,12 @@ func (c *Config) UnmarshalKey(key string, rawVal interface{}, opts ...viper.Deco
if !strings.HasPrefix(k, prefix) {
continue
}
fmt.Printf("prefix: %v\n", prefix)
mk := strings.TrimPrefix(k, prefix)
fmt.Printf("got key1: %v\n", mk)
mk = strings.Split(mk, delimiter)[0]
fmt.Printf("got key2: %v\n", mk)
if _, exists := val[mk]; exists {
continue
}
mv := c.Get(key + delimiter + mk)
fmt.Printf("got key5: %v\n", mv)
if mv == nil {
continue
}
Expand Down

0 comments on commit 21b7dc9

Please sign in to comment.