Skip to content

Commit

Permalink
log: add additional configuration logging
Browse files Browse the repository at this point in the history
  • Loading branch information
edaniszewski committed Mar 30, 2020
1 parent d3de7ca commit ef5fb7d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sdk/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import (
log "github.com/sirupsen/logrus"
sdkError "github.com/vapor-ware/synse-sdk/sdk/errors"
"github.com/vapor-ware/synse-sdk/sdk/policy"
"github.com/vapor-ware/synse-sdk/sdk/utils"
"gopkg.in/yaml.v2"
)

Expand Down Expand Up @@ -173,7 +174,7 @@ func (loader *Loader) Load(pol policy.Policy) error {
"name": loader.FileName,
"ext": loader.Ext,
"policy": loader.policy,
"data": loader.merged,
"data": utils.RedactPasswords(loader.merged),
}).Info("[config] successfully loaded configuration data")
return nil
}
Expand Down Expand Up @@ -422,7 +423,7 @@ func (loader *Loader) read(pol policy.Policy) error {
}
log.WithFields(log.Fields{
"file": path,
"data": res,
"data": utils.RedactPasswords(res),
}).Debug("[config] loaded configuration from file")
loader.data = append(loader.data, res)
default:
Expand Down

0 comments on commit ef5fb7d

Please sign in to comment.