feat:update log

This commit is contained in:
wenjianzhang committed 2020-07-24 18:10:25 +08:00
1 parent 0768efbcb3
commit f3adadd6ef
20 files changed
+194 -146

No files matched your search

+2 -1
View File
@@ -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)
}
// 打开数据库连接