|
@@ -31,7 +31,7 @@ type localConfig struct {
|
|
|
|
|
|
var (
|
|
|
LocalConfig localConfig
|
|
|
- localConfigPath = "./config/local-config.yaml"
|
|
|
+ localConfigPath = "/mnt/media/sda1/cicv-data-closedloop/config/local-config.yaml"
|
|
|
)
|
|
|
|
|
|
func InitLocalConfig() {
|
|
@@ -39,14 +39,14 @@ func InitLocalConfig() {
|
|
|
|
|
|
content, err := os.ReadFile(localConfigPath)
|
|
|
if err != nil {
|
|
|
- fmt.Println("读取本地配置文件失败。", err)
|
|
|
+ fmt.Println("程序退出。读取本地配置文件失败。", err)
|
|
|
os.Exit(-1)
|
|
|
}
|
|
|
|
|
|
|
|
|
err = yaml.Unmarshal(content, &LocalConfig)
|
|
|
if err != nil {
|
|
|
- fmt.Println("解析本地配置文件失败。", err)
|
|
|
+ fmt.Println("程序退出。解析本地配置文件失败。", err)
|
|
|
os.Exit(-1)
|
|
|
}
|
|
|
|