diff --git a/lib/log/logger.go b/lib/log/logger.go index 1df7062f..3246b89e 100644 --- a/lib/log/logger.go +++ b/lib/log/logger.go @@ -258,7 +258,7 @@ func InitLogger(logFile string, period int, count int, prefix string, logLevel L logWriter := getLogWriter(logFile, period, count) Elogger = NewEmsLogger3(logWriter, prefix, DEFAULT_LOG_FLAG, logLevel) - fmt.Printf("logFile=%s, period=%d, count=%d, prefix=%s, logLevel=%s\n", logFile, period, count, prefix, GetLevelString()) + // fmt.Printf("logFile=%s, period=%d, count=%d, prefix=%s, logLevel=%s\n", logFile, period, count, prefix, GetLevelString()) return logWriter } diff --git a/main.go b/main.go index f4f6fca4..1a632049 100644 --- a/main.go +++ b/main.go @@ -172,9 +172,9 @@ func loadFeatures(app *gin.Engine) { conf := featuresCfg.GetYamlConfig() log.InitLogger(conf.Logger.File, conf.Logger.Duration, conf.Logger.Count, "omc:restagent", featuresCfg.GetLogLevel()) - fmt.Printf("OMC Version: %s\n", config.Version) - log.Infof("========================= OMC Startup =========================") - log.Infof("OMC Version: %s %s %s", config.Version, config.BuildTime, config.GoVer) + // fmt.Printf("OMC Version: %s\n", config.Version) + // log.Infof("========================= OMC Startup =========================") + // log.Infof("OMC Version: %s %s %s", config.Version, config.BuildTime, config.GoVer) mml.InitMML() diff --git a/src/framework/config/config.go b/src/framework/config/config.go index f10c32ef..d43740e7 100644 --- a/src/framework/config/config.go +++ b/src/framework/config/config.go @@ -80,7 +80,7 @@ func initViper(configDir *embed.FS) { // 当期服务环境运行配置 => local env := conf.GetString("env") - log.Printf("current service environment configuration => %s \n", env) + // log.Printf("current service environment configuration => %s \n", env) // 加载运行配置文件合并相同配置 envConfigPath := fmt.Sprintf("config/config.%s.yaml", env) diff --git a/src/framework/database/db/expand.go b/src/framework/database/db/expand.go index 3f9554f8..2be66e66 100644 --- a/src/framework/database/db/expand.go +++ b/src/framework/database/db/expand.go @@ -60,7 +60,7 @@ func ImportSQL() { processSQLFile(db, sqlPath) } - log.Println("process success") + // log.Println("process success") os.Exit(0) }