This website works better with JavaScript.
Home
Explore
Help
Sign In
go_rely_warehouse
/
zyos_go_pay
Watch
4
Star
1
Fork
0
Code
Issues
0
Releases
67
Wiki
Activity
Browse Source
ADD Redis
tags/v1.6.1
DengBiao
2 years ago
parent
29f80502bf
commit
658724d4b9
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
db/db.go
+ 1
- 1
db/db.go
View File
@@ -29,7 +29,7 @@ func InitDB(c *md.DBCfg) error {
if err = Db.Ping(); err != nil { //尝试ping数据库
return err
}
if c.ShowLog {
if c.ShowLog {
//根据配置文件设置日志
Db.ShowSQL(true) //设置是否打印sql
Db.Logger().SetLevel(0) //设置日志等级
//修改日志文件存放路径文件名是%s.logs
Write
Preview
Loading…
Cancel
Save