修改日志模块

This commit is contained in:
huangxiaolei
2022-12-13 16:52:06 +08:00
parent 9dc864ff69
commit 662b058327
19 changed files with 134 additions and 82 deletions

View File

@@ -40,7 +40,7 @@ func CheckJsonLoop(path string, errorJsonFileList *[]string, totalJsonFileCount
func TestCheckJsonValid(t *testing.T) {
config.InitConfig("./application.toml")
logger.InitLogger("test", config.CONF.Logger)
logger.InitLogger("test")
errorJsonFileList := make([]string, 0)
totalJsonFileCount := 0
CheckJsonLoop("./game_data_config/json", &errorJsonFileList, &totalJsonFileCount)

View File

@@ -9,7 +9,7 @@ import (
func TestInitGameDataConfig(t *testing.T) {
config.InitConfig("./application.toml")
logger.InitLogger("test", config.CONF.Logger)
logger.InitLogger("test")
logger.LOG.Info("start load conf")
InitGameDataConfig()
logger.LOG.Info("load conf finish, conf: %v", CONF)