Update openp2p.go

delete second gLog=NewLogger() in case "update"
This commit is contained in:
W192547975
2023-08-06 15:09:25 +08:00
committed by GitHub
parent 01ff77fe6f
commit b3389c5686

View File

@@ -21,7 +21,6 @@ func Run() {
fmt.Println(OpenP2PVersion)
return
case "update":
gLog = NewLogger(baseDir, ProductName, LvDEBUG, 1024*1024, LogFileAndConsole)
targetPath := filepath.Join(defaultInstallPath, defaultBinName)
d := daemon{}
err := d.Control("restart", targetPath, nil)