|
@@ -15,6 +15,7 @@ func init() { |
|
@@ -15,6 +15,7 @@ func init() { |
15
|
log.Error(fmt.Sprintf("【MYSQL】注册数据库失败:%v source:%v", err, constant.MYSQL_DATA_SOURCE))
|
15
|
log.Error(fmt.Sprintf("【MYSQL】注册数据库失败:%v source:%v", err, constant.MYSQL_DATA_SOURCE))
|
16
|
return
|
16
|
return
|
17
|
}
|
17
|
}
|
|
|
18
|
+ log.Debug(fmt.Sprintf("【MYSQL】注册数据库:%v", constant.MYSQL_DATA_SOURCE))
|
18
|
orm.SetMaxIdleConns(aliasName, constant.MYSQL_MAX_IDLE)
|
19
|
orm.SetMaxIdleConns(aliasName, constant.MYSQL_MAX_IDLE)
|
19
|
orm.SetMaxOpenConns(aliasName, constant.MYSQL_MAX_OPEN)
|
20
|
orm.SetMaxOpenConns(aliasName, constant.MYSQL_MAX_OPEN)
|
20
|
} |
21
|
} |