diff --git a/server/chat/config/config.go b/server/chat/config/config.go index e8f0e36..f93389d 100644 --- a/server/chat/config/config.go +++ b/server/chat/config/config.go @@ -1,7 +1,6 @@ package config import ( - "fmt" "game/common/config" "github.com/fox/fox/db" "github.com/fox/fox/log" @@ -14,7 +13,7 @@ type ChatConfig struct { } func initLog() { - log.Open(fmt.Sprintf("chat_%v.log", Command.VMod), log.DebugL) + log.Open("chat.log", log.DebugL) } func LoadConfig(GitCommit, GitBranch, BuildDate string) { diff --git a/server/gate/config/config.go b/server/gate/config/config.go index 713d2a9..472ee8d 100644 --- a/server/gate/config/config.go +++ b/server/gate/config/config.go @@ -3,7 +3,6 @@ package config import ( "context" "encoding/json" - "fmt" "game/common/config" "github.com/fox/fox/db" "github.com/fox/fox/log" @@ -24,7 +23,7 @@ type GateConfig struct { } func initLog() { - log.Open(fmt.Sprintf("gate_%v.log", Command.VMod), log.DebugL) + log.Open("gate.log", log.DebugL) } func LoadConfig(GitCommit, GitBranch, BuildDate string) { diff --git a/server/login/config/config.go b/server/login/config/config.go index 6d2ae88..0f12e60 100644 --- a/server/login/config/config.go +++ b/server/login/config/config.go @@ -1,7 +1,6 @@ package config import ( - "fmt" "game/common/config" "github.com/fox/fox/db" "github.com/fox/fox/log" @@ -14,7 +13,7 @@ type LoginConfig struct { } func initLog() { - log.Open(fmt.Sprintf("login_%v.log", Command.VMod), log.DebugL) + log.Open("login.log", log.DebugL) } func LoadConfig(GitCommit, GitBranch, BuildDate string) {