adjust storage

This commit is contained in:
A.Unger
2020-11-04 15:37:49 +01:00
parent dae374b31a
commit 04cccd7651

View File

@@ -52,22 +52,22 @@ func Execute() error {
switch err.(type) {
case viper.ConfigFileNotFoundError:
logger.Info().
Msg("Continue without config")
Msg("no config found on preconfigured location")
case viper.UnsupportedConfigError:
logger.Fatal().
Err(err).
Msg("Unsupported config type")
Msg("unsupported config type")
default:
logger.Fatal().
Err(err).
Msg("Failed to read config")
Msg("failed to read config")
}
}
if err := viper.Unmarshal(&cfg); err != nil {
logger.Fatal().
Err(err).
Msg("Failed to parse config")
Msg("failed to parse config")
}
return nil