log backup
This commit is contained in:
@@ -25,7 +25,7 @@ database:
|
||||
host: 127.0.0.1
|
||||
port: 33066
|
||||
name: omc_db
|
||||
backup: ./database
|
||||
backup: d:/local.git/be.ems/restagent/database
|
||||
|
||||
mml:
|
||||
port: 4100
|
||||
|
||||
@@ -14,6 +14,7 @@ import (
|
||||
|
||||
"ems.agt/features/dbrest"
|
||||
"ems.agt/features/fm"
|
||||
"ems.agt/features/lm"
|
||||
"ems.agt/features/monitor/monitor"
|
||||
"ems.agt/features/pm"
|
||||
"ems.agt/restagent/config"
|
||||
@@ -100,6 +101,12 @@ func main() {
|
||||
fmt.Println("rests.initDbClient err:", err)
|
||||
os.Exit(4)
|
||||
}
|
||||
err = lm.InitDbClient(conf.Database.Type, conf.Database.User, conf.Database.Password,
|
||||
conf.Database.Host, conf.Database.Port, conf.Database.Name)
|
||||
if err != nil {
|
||||
fmt.Println("lm.initDbClient err:", err)
|
||||
os.Exit(4)
|
||||
}
|
||||
|
||||
router := routes.NewRouter()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user