From 37bd1526d7347d32074198ca0e832e5873414a55 Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Wed, 12 Jul 2023 12:20:38 +0800 Subject: [PATCH] add kick log --- internal/msggateway/hub_server.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/msggateway/hub_server.go b/internal/msggateway/hub_server.go index cfb8c3d47..034dd0482 100644 --- a/internal/msggateway/hub_server.go +++ b/internal/msggateway/hub_server.go @@ -2,6 +2,7 @@ package msggateway import ( "context" + "github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/cache" "github.com/OpenIMSDK/Open-IM-Server/pkg/common/config" @@ -139,6 +140,7 @@ func (s *Server) KickUserOffline(ctx context.Context, req *msggateway.KickUserOf for _, v := range req.KickUserIDList { if clients, _, ok := s.LongConnServer.GetUserPlatformCons(v, int(req.PlatformID)); ok { for _, client := range clients { + log.ZDebug(ctx, "kick user offline", "userID", v, "platformID", req.PlatformID, "client", client) err := client.KickOnlineMessage() if err != nil { return nil, err