Commit c3da598f authored by szh's avatar szh

update toml path

parent 2b469a12
...@@ -188,7 +188,9 @@ func MakeSureNodeRunning() error { ...@@ -188,7 +188,9 @@ func MakeSureNodeRunning() error {
tlog.Error("MakeSureNodeRunning SetPai", "err", pai.Err) tlog.Error("MakeSureNodeRunning SetPai", "err", pai.Err)
//判断未启动时 检查配置文件是否正常 //判断未启动时 检查配置文件是否正常
if strings.Contains(pai.Err, "8802") { if strings.Contains(pai.Err, "8802") {
configSize, err := util.GetFileSizeByBytes(Bityuan.PName + "bityuan.toml") toml := path.Dir(Bityuan.Path) + "/bityuan.toml"
tlog.Info("toml ", "path", toml)
configSize, err := util.GetFileSizeByBytes(toml)
if err != nil { if err != nil {
tlog.Error("GetFileSize", "err", err) tlog.Error("GetFileSize", "err", err)
return err return err
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment