feat:data debug config.
This commit is contained in:
@@ -60,6 +60,7 @@ func InitConfig() {
|
||||
viper.AddConfigPath("./")
|
||||
viper.SetConfigName("config")
|
||||
viper.SetConfigType("yaml")
|
||||
viper.SetDefault("mqtt.enable_measurement_subscriptions", true)
|
||||
if err := viper.ReadInConfig(); err != nil {
|
||||
panic("Failed to read config: " + err.Error())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user