|
@@ -19,9 +19,6 @@ func init() {
|
|
|
db, _ := orm.GetDB("default")
|
|
|
db.SetConnMaxLifetime(10 * time.Minute)
|
|
|
|
|
|
- orm.Debug = true
|
|
|
- orm.DebugLog = orm.NewLog(utils.Binlog)
|
|
|
-
|
|
|
_ = orm.RegisterDataBase("rddp", "mysql", utils.MYSQL_URL_RDDP)
|
|
|
orm.SetMaxIdleConns("rddp", 50)
|
|
|
orm.SetMaxOpenConns("rddp", 100)
|
|
@@ -57,6 +54,9 @@ func init() {
|
|
|
etaDb, _ := orm.GetDB("eta")
|
|
|
etaDb.SetConnMaxLifetime(10 * time.Minute)
|
|
|
|
|
|
+ orm.Debug = true
|
|
|
+ orm.DebugLog = orm.NewLog(utils.Binlog)
|
|
|
+
|
|
|
// 注册Edb指标 数据表
|
|
|
initEdbDataTable()
|
|
|
|