test: push log add

This commit is contained in:
Gordon 2023-06-06 17:26:00 +08:00
parent 4b77839202
commit 78cab78197
2 changed files with 3 additions and 2 deletions

View File

@ -88,11 +88,12 @@ func (s *Server) SuperGroupOnlineBatchPushOneMsg(ctx context.Context, req *msgga
} }
clients, ok := s.LongConnServer.GetUserAllCons(v) clients, ok := s.LongConnServer.GetUserAllCons(v)
if !ok { if !ok {
log.ZDebug(ctx, "push user not online", "userID", v)
tempT.Resp = resp tempT.Resp = resp
singleUserResult = append(singleUserResult, tempT) singleUserResult = append(singleUserResult, tempT)
continue continue
} }
log.ZDebug(ctx, "SuperGroupOnlineBatchPushOneMsg", "clients", clients) log.ZDebug(ctx, "push user online", "clients", clients, "userID", v)
for _, client := range clients { for _, client := range clients {
if client != nil { if client != nil {
temp := &msggateway.SingleMsgToUserPlatform{ temp := &msggateway.SingleMsgToUserPlatform{

View File

@ -147,7 +147,7 @@ func getRemoteAdders(client []*Client) string {
if i == 0 { if i == 0 {
ret = c.ctx.GetRemoteAddr() ret = c.ctx.GetRemoteAddr()
} else { } else {
ret += "@" + c.ctx.GetRemoteAddr() ret += " @ " + c.ctx.GetRemoteAddr()
} }
} }
return ret return ret