fix logger configure issue for package gdb
@@ -31,14 +31,6 @@ func Database(name ...string) gdb.DB {
}
instanceKey := fmt.Sprintf("%s.%s", gFRAME_CORE_COMPONENT_NAME_DATABASE, group)
db := instances.GetOrSetFuncLock(instanceKey, func() interface{} {
- // Configuration already exists.
- if gdb.GetConfig(group) != nil {
- db, err := gdb.Instance(group)
- if err != nil {
- panic(err)
- }
- return db
- }
var m map[string]interface{}
// It firstly searches the configuration of the instance name.
nodeKey, _ := gutil.MapPossibleItemByKey(Config().GetMap("."), gDATABASE_NODE_NAME)
