diff --git a/internal/api/friend/add_friend.go b/internal/api/friend/add_friend.go index e6e4632a2..d949df083 100644 --- a/internal/api/friend/add_friend.go +++ b/internal/api/friend/add_friend.go @@ -41,9 +41,7 @@ func ImportFriend(c *gin.Context) { OwnerUid: params.OwnerUid, Token: c.Request.Header.Get("token"), } - log.ErrorByKv("ImportFriend Test start", params.OperationID) RpcResp, err := client.ImportFriend(context.Background(), req) - //log.ErrorByKv("ImportFriend Test end", params.OperationID, "resp", RpcResp, "err", err.Error()) if err != nil { log.Error(req.Token, req.OperationID, "err=%s,ImportFriend failed", err) c.JSON(http.StatusInternalServerError, gin.H{"errCode": 500, "errMsg": "cImportFriend failed" + err.Error()}) diff --git a/pkg/common/db/model.go b/pkg/common/db/model.go index 1c09a7d17..494f8ffaf 100644 --- a/pkg/common/db/model.go +++ b/pkg/common/db/model.go @@ -22,6 +22,7 @@ func key(dbAddress, dbName string) string { func init() { //mysql init initMysqlDB() + // mongo init mgoDailInfo := &mgo.DialInfo{ Addrs: config.Config.Mongo.DBAddress, Direct: config.Config.Mongo.DBDirect,