From 64b82821f7e4a9860ac6dc0fbb660a9d71eb9331 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Thu, 22 May 2025 19:30:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B3=A8=E9=87=8A=E6=8E=89=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E8=BE=93=E5=87=BA=E4=BB=A5=E5=87=8F=E5=B0=91=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E6=97=B6=E7=9A=84=E5=86=97=E4=BD=99=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/log/logger.go | 2 +- main.go | 6 +++--- src/framework/config/config.go | 2 +- src/framework/database/db/expand.go | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) 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) }