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
update
tags/v1.6.0
DengBiao
1 year ago
parent
0fb9fef4b0
commit
29f80502bf
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