初始化输出配置文件

This commit is contained in:
junleea 2025-10-18 23:53:11 +08:00
parent 80352e8601
commit 98f9424e77
1 changed files with 4 additions and 0 deletions

View File

@ -103,6 +103,10 @@ func initConfig(configPath string) {
err := proto.ReadConfig(configPath)
if err != nil {
panic("failed to read config file:" + err.Error())
} else {
//输出配置文件
config_bytes, _ := json.Marshal(proto.Config)
log.Println(string(config_bytes))
}
}