From 13a3a269280e7c70fdf3b6472ba74f50db5a5d53 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Sun, 29 Jan 2023 14:03:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96cmd=20=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/cmd/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/cmd/main.go b/services/cmd/main.go index 25d9f80ca..d4c616cd3 100644 --- a/services/cmd/main.go +++ b/services/cmd/main.go @@ -79,7 +79,7 @@ func init() { RootCmd.PersistentFlags().StringVarP(&gmpath, "gm", "g", "./gm.json", "游戏区服配置") RootCmd.PersistentFlags().StringVarP(&crosspath, "cross", "c", "./cross.json", "游戏跨服配置") RootCmd.PersistentFlags().StringVarP(&sid, "sid", "i", "", "区服id") - RootCmd.PersistentFlags().BoolVarP(&onelog, "log", "l", false, "输出日志") + RootCmd.PersistentFlags().BoolVarP(&onelog, "log", "l", true, "输出日志") RootCmd.AddCommand(confCmd, startCmd, stopCmd, restart) } @@ -336,6 +336,7 @@ func convertServiceSttings(config *comm.GameConfig, id int, stype string, ip str } } else { sseting.Sys["log"] = map[string]interface{}{ + "Alias": sseting.Id, "FileName": fmt.Sprintf("./log/%s.log", config.AreaId), "Loglevel": config.Loglevel, "MaxAgeTime": config.MaxAgeTime,