Browse Source

ADD Redis

tags/v1.6.1
DengBiao 2 years ago
parent
commit
658724d4b9
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