diff --git a/db/db.go b/db/db.go index abfc0cf..db59a53 100644 --- a/db/db.go +++ b/db/db.go @@ -42,6 +42,7 @@ func Open() (*Client, error) { c := &Client{ ent: client, } + c.init() return c, nil } diff --git a/server/common.go b/server/common.go index 142eaee..e89a85e 100644 --- a/server/common.go +++ b/server/common.go @@ -19,7 +19,7 @@ func HttpHandler(f func(*gin.Context) (interface{}, error)) gin.HandlerFunc { }) return } - //log.Infof("url %v return: %+v", ctx.Request.URL, r) + log.Debug("url %v return: %+v", ctx.Request.URL, r) ctx.JSON(200, Response{ Code: 0,