优化节点日志记录,可以记录和上报panic错误

This commit is contained in:
GoEdgeLab
2021-10-14 10:28:32 +08:00
parent 97e7f79fcd
commit 7edc13fc50
3 changed files with 59 additions and 1 deletions

View File

@@ -184,6 +184,8 @@ func (this *AppCmd) runStart() {
return
}
_ = os.Setenv("EdgeBackground", "on")
cmd := exec.Command(os.Args[0])
err := cmd.Start()
if err != nil {