From 71f328ef94ab6372da8e22b8efb0026164aa6471 Mon Sep 17 00:00:00 2001 From: OpenIM-Gordon <46924906+FGadvancer@users.noreply.github.com> Date: Tue, 3 Sep 2024 17:57:25 +0800 Subject: [PATCH] Update hub_server.go --- internal/msggateway/hub_server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/msggateway/hub_server.go b/internal/msggateway/hub_server.go index 28c227162..01482aa11 100644 --- a/internal/msggateway/hub_server.go +++ b/internal/msggateway/hub_server.go @@ -155,6 +155,7 @@ func (s *Server) pushToUser(ctx context.Context, userID string, msgData *sdkws.M (client.IsBackground && client.PlatformID != constant.IOSPlatformID) { err := client.PushMessage(ctx, msgData) if err != nil { + log.ZWarn(ctx, "online push msg failed", err, "userID", userID, "platformID", client.PlatformID) userPlatform.ResultCode = int64(servererrs.ErrPushMsgErr.Code()) } else { if _, ok := s.pushTerminal[client.PlatformID]; ok {