Skip to content

Commit d1c37f1

Browse files
committed
remove debugs
1 parent 7d93874 commit d1c37f1

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

internals/config/loader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func Normalize(config *configutils.Config, path string, structure any) {
111111
// Load temporary config back into paths
112112
config.Layer.Delete(path)
113113

114-
config.Load(tmpConf.Layer.Get("").(map[string]any), path)
114+
config.Load(tmpConf.Layer.Raw(), path)
115115
}
116116

117117
func InitReload() {

internals/config/tokens.go

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,15 @@ func LoadTokens() {
2727
}
2828

2929
func NormalizeTokens() {
30-
log.Dev("Tokens: ", tokenConf.Layer.Get("tokenconfigs"))
31-
3230
data := []map[string]any{}
3331

3432
for _, config := range tokenConf.Layer.Slices("tokenconfigs") {
3533
tmpConf := configutils.New()
36-
tmpConf.Load(config.Get("").(map[string]any), "")
37-
38-
log.Dev("TmpConf: ", tmpConf.Layer.All())
39-
log.Dev("Config: ", config.All())
34+
tmpConf.Load(config.Raw(), "")
4035

4136
Normalize(tmpConf, "overrides", &structure.SETTINGS{})
42-
43-
log.Dev("Normalized: ", tmpConf.Layer.All())
4437

45-
data = append(data, tmpConf.Layer.Get("").(map[string]any))
38+
data = append(data, tmpConf.Layer.Raw())
4639
}
4740

4841
// Merge token configs together into new temporary config

0 commit comments

Comments
 (0)