Browse Source

update

tags/v1.6.0
DengBiao 2 years ago
parent
commit
29f80502bf
1 changed files with 1 additions and 1 deletions
  1. +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


Loading…
Cancel
Save