diff options
author | Wim <wim@42.be> | 2019-06-01 22:42:10 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2019-06-02 09:35:20 +0100 |
commit | e610fb3201bb233e68d88c1dfcd30d4206e53f22 (patch) | |
tree | 53fc4f6e29c455ec6c9f26a7ce10f83916052bc8 /bridge/config/config.go | |
parent | 40f1d35415f5e3638a1972b4aa56365070d5ccb3 (diff) | |
download | matterbridge-msglm-e610fb3201bb233e68d88c1dfcd30d4206e53f22.tar.gz matterbridge-msglm-e610fb3201bb233e68d88c1dfcd30d4206e53f22.tar.bz2 matterbridge-msglm-e610fb3201bb233e68d88c1dfcd30d4206e53f22.zip |
Make config parse errors readable
Diffstat (limited to 'bridge/config/config.go')
-rw-r--r-- | bridge/config/config.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bridge/config/config.go b/bridge/config/config.go index d8237555..a0cc20f7 100644 --- a/bridge/config/config.go +++ b/bridge/config/config.go @@ -254,12 +254,12 @@ func newConfigFromString(logger *logrus.Entry, input []byte) *config { viper.AutomaticEnv() if err := viper.ReadConfig(bytes.NewBuffer(input)); err != nil { - logger.Fatalf("Failed to parse the configuration: %#v", err) + logger.Fatalf("Failed to parse the configuration: %s", err) } cfg := &BridgeValues{} if err := viper.Unmarshal(cfg); err != nil { - logger.Fatalf("Failed to load the configuration: %#v", err) + logger.Fatalf("Failed to load the configuration: %s", err) } return &config{ logger: logger, |