xyxie 1 жил өмнө
parent
commit
0c7876f61a
1 өөрчлөгдсөн 2 нэмэгдсэн , 0 устгасан
  1. 2 0
      models/db.go

+ 2 - 0
models/db.go

@@ -24,6 +24,8 @@ func init() {
 	etaDb, _ := orm.GetDB("eta")
 	etaDb.SetConnMaxLifetime(10 * time.Minute)
 
+	orm.Debug = true
+	orm.DebugLog = orm.NewLog(utils.Binlog)
 	//注册对象
 	orm.RegisterModel(
 		new(Report),