From f583fa6698f8a0518ec195b1a710ad3b10581943 Mon Sep 17 00:00:00 2001 From: zhangsz Date: Mon, 16 Jun 2025 17:08:11 +0800 Subject: [PATCH] fix: ... --- config/systemd/restagent.service | 2 +- lib/config/config.go | 2 +- restagent/restagent.go | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config/systemd/restagent.service b/config/systemd/restagent.service index 61eb41fa..4bdbeadd 100644 --- a/config/systemd/restagent.service +++ b/config/systemd/restagent.service @@ -1,5 +1,5 @@ [Unit] -Description=OMC rest agent daemon +Description=PSAP rest agent daemon After=network-online.target mysql.service kvdb.service [Service] diff --git a/lib/config/config.go b/lib/config/config.go index 9b81433d..defbef2c 100644 --- a/lib/config/config.go +++ b/lib/config/config.go @@ -514,7 +514,7 @@ func GetOMCHostUrl() string { // //global.GoVer = "go version go1.15.7 linux/arm64" // flag.Parse() // if *pv { -// fmt.Printf("OMC restagent version: %s\n%s\n%s\n\n", global.Version, global.BuildTime, global.GoVer) +// fmt.Printf("PSAP restagent version: %s\n%s\n%s\n\n", global.Version, global.BuildTime, global.GoVer) // os.Exit(0) // } // if *ph { diff --git a/restagent/restagent.go b/restagent/restagent.go index 4a3eaa63..7262fae2 100644 --- a/restagent/restagent.go +++ b/restagent/restagent.go @@ -166,9 +166,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 restagent version: %s\n", global.Version) - log.Infof("========================= OMC restagent startup =========================") - log.Infof("OMC restagent version: %s %s %s", global.Version, global.BuildTime, global.GoVer) + fmt.Printf("PSAP restagent version: %s\n", global.Version) + log.Infof("========================= PSAP restagent startup =========================") + log.Infof("PSAP restagent version: %s %s %s", global.Version, global.BuildTime, global.GoVer) err := dborm.InitDbClient(conf.Database.Type, conf.Database.User, conf.Database.Password, conf.Database.Host, conf.Database.Port, conf.Database.Name, conf.Database.ConnParam)