feat:update log
This commit is contained in:
1 parent
0768efbcb3
commit
f3adadd6ef
20 files changed
+194
-146
No files matched your search
@@ -29,7 +29,8 @@ func (e *Mysql) Setup() {
|
||||
log.Fatalf("database error %v", global.Eloquent.Error)
|
||||
}
|
||||
|
||||
global.Eloquent.LogMode(true)
|
||||
global.Eloquent.LogMode(config.DatabaseConfig.Logger.Enabled)
|
||||
global.Eloquent.SetLogger(global.DBLogger)
|
||||
}
|
||||
|
||||
// 打开数据库连接
|
||||
|
||||
Reference in new issue
Block a user