@@ -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),