This commit is contained in:
zhangsz
2025-06-16 17:08:11 +08:00
parent abe06e1aaf
commit f583fa6698
3 changed files with 5 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
[Unit]
Description=OMC rest agent daemon
Description=PSAP rest agent daemon
After=network-online.target mysql.service kvdb.service
[Service]

View File

@@ -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 {

View File

@@ -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)