Skip to content

Commit 9af3249

Browse files
committed
debug tokenconfigs
1 parent 11d04b2 commit 9af3249

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

internals/config/loader.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,6 @@ func Normalize(config *configutils.Config, path string, structure any) {
9393
data := config.Layer.Get(path)
9494
old, ok := data.(map[string]any)
9595

96-
log.Debug("Get:", old)
97-
9896
if !ok {
9997
log.Warn("Could not load `"+path+"`")
10098
return
@@ -155,8 +153,6 @@ func LoadConfig() {
155153
log.Debug("Loading Config ", ENV.CONFIG_PATH)
156154
_, err := userConf.LoadFile(ENV.CONFIG_PATH, yaml.Parser())
157155

158-
log.Debug("Loaded Config:", userConf.Layer.All())
159-
160156
if err != nil {
161157
_, fsErr := os.Stat(ENV.CONFIG_PATH)
162158

internals/config/tokens.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,12 @@ func NormalizeTokens() {
3838
data = append(data, tmpConf.Layer.Get("").(map[string]any))
3939
}
4040

41+
log.Dev("Tokens: ", tokenConf.Layer.All())
42+
4143
// Merge token configs together into new temporary config
4244
tokenConf.Load(data, "tokenconfigs")
45+
46+
log.Dev("Tokens: ", tokenConf.Layer.All())
4347
}
4448

4549
func InitTokens() {

0 commit comments

Comments
 (0)