diff --git a/cv/group_cv/group.go b/cv/group_cv/group.go index d7153770f8ca5c82460d8e767ba704a71ae22f98..cd04da4ceb618cfa944342ab4098cbc87e7f10ab 100644 --- a/cv/group_cv/group.go +++ b/cv/group_cv/group.go @@ -321,7 +321,7 @@ func BuildJoinedGroupInfo(myService *domain.Service, myUserId uint64, originGrou if err != nil { return nil, 0, err } - model.Log.Infof("BuildJoinedGroupInfo, roomEnterTime: %v", roomEnterTime) + //model.Log.Infof("BuildJoinedGroupInfo, roomEnterTime: %v", roomEnterTime) // 排序优先级V8.0版本 sort.Slice(groupIds, func(i, j int) bool { diff --git a/domain/model/group_m/factory.go b/domain/model/group_m/factory.go index 7313a09afe29c8aea29eff01063b57f8516faec8..9be1191a2ef901364e6bc774067d794bc00a4315 100644 --- a/domain/model/group_m/factory.go +++ b/domain/model/group_m/factory.go @@ -253,7 +253,7 @@ func BatchGetAllMicUser(model *domain.Model, groupIds []string) (map[string][]my if err != nil { return nil, err } - model.Log.Infof("BatchGetAllMicUser redis return size = %d, mics: %v", len(mics), mics) + //model.Log.Infof("BatchGetAllMicUser redis return size = %d, mics: %v", len(mics), mics) if len(mics) >= len(groupIds) { for i, g := range groupIds { diff --git a/domain/model/group_m/room.go b/domain/model/group_m/room.go index 5b7d8a3303daa947ca7365029c3a6a16f76ec154..67604e385add87814cd850b1c14a7e4351f641e1 100644 --- a/domain/model/group_m/room.go +++ b/domain/model/group_m/room.go @@ -333,7 +333,7 @@ func RoomLivingExistsGroup(model *domain.Model) (map[string]map[uint64]struct{}, if err != nil { return nil, myerr.WrapErr(err) } - model.Log.Infof("group_room_living RoomLivingExistsGroup groupUserIdstrs:%v", groupUserIdstrs) + //model.Log.Infof("group_room_living RoomLivingExistsGroup groupUserIdstrs:%v", groupUserIdstrs) groupGroup := map[string]map[uint64]struct{}{} for i, _ := range groupUserIdstrs { tempGroupUid, userId := analysisMemberStr(groupUserIdstrs[i]) @@ -429,7 +429,7 @@ func BatchGetRoomVisitCount(logE *logrus.Entry, groupIds []string) (map[string]i if err != nil { return nil, err } - logE.Infof("MGetRoomVisitCount:%v", roomVisitCount) + //logE.Infof("MGetRoomVisitCount:%v", roomVisitCount) visitCount := make(map[string]int64) for _, groupId := range groupIds { @@ -464,7 +464,7 @@ func BatchGetRoomVisitCountList(logE *logrus.Entry, groupIds []string) (map[stri if err != nil { return nil, nil, err } - logE.Infof("MGetRoomVisitCount:%v", roomVisitCount) + //logE.Infof("MGetRoomVisitCount:%v", roomVisitCount) res := make([]*RoomVisit, 0, len(groupIds)) visitCount := make(map[string]int64) diff --git a/domain/model/tim_m/user.go b/domain/model/tim_m/user.go index 70d27ff2d76a49f499a06e5205ca9e99fce3456d..16e05cc2b71639d25f0701ae236a0ab97ec0c9d0 100644 --- a/domain/model/tim_m/user.go +++ b/domain/model/tim_m/user.go @@ -325,7 +325,7 @@ func GetOnlineStatus(model *domain.Model, extIds []string) (map[string]uint, err model.Log.Warnf("getOnlineStatus redis failed") left = extIds } else { - model.Log.Infof("getOnlineStatus redis return size = %d: %v", len(r), r) + //model.Log.Infof("getOnlineStatus redis return size = %d: %v", len(r), r) if len(r) >= len(extIds) { for i, e := range extIds { diff --git a/route/group_r/group_info.go b/route/group_r/group_info.go index a71b61b7e14bd544e2ab53dfe6c1b884e670fe55..8cf0273b9d6d55bd1de8ea3d4ef4273ab08bd4f3 100644 --- a/route/group_r/group_info.go +++ b/route/group_r/group_info.go @@ -211,7 +211,7 @@ func GetTheirGroups(c *gin.Context) (*mycontext.MyContext, error) { if err != nil { return myContext, err } - model.Log.Infof("BuildJoinedGroupInfo, roomEnterTime: %v", roomEnterTime) + //model.Log.Infof("BuildJoinedGroupInfo, roomEnterTime: %v", roomEnterTime) // 正在进行的游戏 games := game_m.GetNotEndGamesMap(model) diff --git a/route/group_r/group_list.go b/route/group_r/group_list.go index 0b12842a3e83cf72fe5457f514e21be5cf43edb2..543c973038f38b02019e2574d57bb5b87e84a802 100644 --- a/route/group_r/group_list.go +++ b/route/group_r/group_list.go @@ -202,7 +202,7 @@ func GetPopularGroups(c *gin.Context) (*mycontext.MyContext, error) { } } } - model.Log.Infof("GetPopularGroups, countryScore[*]: %v,cost:%v", countryScore, time.Now().Sub(start)) + //model.Log.Infof("GetPopularGroups, countryScore[*]: %v,cost:%v", countryScore, time.Now().Sub(start)) now := time.Now() bTime := now.Add(-time.Minute * 30) @@ -211,7 +211,7 @@ func GetPopularGroups(c *gin.Context) (*mycontext.MyContext, error) { if err != nil { return myContext, err } - model.Log.Infof("GetPopularGroups, diamonds in 30 mins: %v,cost:%v", diamonds, time.Now().Sub(start)) + //model.Log.Infof("GetPopularGroups, diamonds in 30 mins: %v,cost:%v", diamonds, time.Now().Sub(start)) visitCount, err := group_m.BatchGetRoomVisitCount(model.Log, groupIds) if err != nil { @@ -275,7 +275,7 @@ func GetPopularGroups(c *gin.Context) (*mycontext.MyContext, error) { // ":" + strconv.FormatUint(diamonds[g], 10) + ":" + strconv.Itoa(int(visitCount[g])) } total := len(hotGroupList) - model.Log.Infof("GetPopularGroups: hotGroupList size = %d,cost:%v", total, time.Now().Sub(start)) + //model.Log.Infof("GetPopularGroups: hotGroupList size = %d,cost:%v", total, time.Now().Sub(start)) result := make([]group_cv.PopularGroupInfo, 0) @@ -309,7 +309,7 @@ func GetPopularGroups(c *gin.Context) (*mycontext.MyContext, error) { //if err != nil { // return myContext, err //} - model.Log.Infof("GetPopularGroups: final start = %d, end = %d, groupIds %v,cost:%v", beginPos, endPos, groupIds, time.Now().Sub(start)) + //model.Log.Infof("GetPopularGroups: final start = %d, end = %d, groupIds %v,cost:%v", beginPos, endPos, groupIds, time.Now().Sub(start)) roomCount, err := group_m.BatchGetRoomCount(model, groupIds) if err != nil { @@ -1258,7 +1258,7 @@ func GetGroupByCountry(c *gin.Context) (*mycontext.MyContext, error) { endTime := time.Now() model.Log.Infof("GetGroupByCountry: candidates size = %d, takes %d ms banned = %d, visitCount size = %d", len(groups), endTime.Sub(beginTime).Milliseconds(), banCount, len(visitCount)) - model.Log.Infof("GetGroupByCountry cost1:%v", time.Now().Sub(beginTime)) + //model.Log.Infof("GetGroupByCountry cost1:%v", time.Now().Sub(beginTime)) hotGroupList := make([]*group_m.GroupInfo, 0)