From 89e10173c2bca1938de96f2bdda2ed1d546e0246 Mon Sep 17 00:00:00 2001 From: yanweidong Date: Thu, 21 Mar 2024 18:17:51 +0800 Subject: [PATCH] fix --- cmd/commands/ctl.go | 2 +- cmd/commands/install.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/commands/ctl.go b/cmd/commands/ctl.go index caf42c5..af8f43a 100644 --- a/cmd/commands/ctl.go +++ b/cmd/commands/ctl.go @@ -10,7 +10,7 @@ import ( func getFilePath(srv *Service) (binPath, logsPath string) { binPath = filepath.Join(env.MeshEnv.Prefix, srv.ServiceKey) - logsPath = filepath.Join(env.MeshEnv.Prefix, "logs", srv.ServiceKey+"@"+srv.Version+".log") + logsPath = filepath.Join(env.MeshEnv.Prefix, "logs", srv.ServiceKey+"-"+srv.Version+".log") return } diff --git a/cmd/commands/install.go b/cmd/commands/install.go index aabdb88..f465ff1 100644 --- a/cmd/commands/install.go +++ b/cmd/commands/install.go @@ -64,7 +64,7 @@ func installExecute(srv string) { DownloadFile(downUrl, binPath, func(length, downLen int64) { fmt.Fprintf(os.Stdout, "Total:%d KB, Current:%d KB, Percent:%.2f%%\r", length, downLen, (float32(downLen)/float32(length))*100) }) - + fmt.Println("[6/6] Download Success!") fmt.Println("[6/6] Restart Microservice:", srv) service.Start() fmt.Println("Install Successful!")