diff --git a/internal/rpc/user/user.go b/internal/rpc/user/user.go index a16a16bb2..b801defca 100644 --- a/internal/rpc/user/user.go +++ b/internal/rpc/user/user.go @@ -301,6 +301,7 @@ func (s *userServer) SetUserStatus(ctx context.Context, req *pbuser.SetUserStatu Status: value.Status, PlatformID: value.PlatformID, } + log.ZDebug(ctx, "============UserStatusChangeNotification pre===========", "tips", tips) s.userNotificationSender.UserStatusChangeNotification(ctx, tips) } } diff --git a/pkg/rpcclient/notification/user.go b/pkg/rpcclient/notification/user.go index 5712cb053..30032ac1e 100644 --- a/pkg/rpcclient/notification/user.go +++ b/pkg/rpcclient/notification/user.go @@ -21,6 +21,7 @@ import ( "github.com/OpenIMSDK/Open-IM-Server/pkg/rpcclient" "github.com/OpenIMSDK/protocol/constant" "github.com/OpenIMSDK/protocol/sdkws" + "github.com/OpenIMSDK/tools/log" ) type UserNotificationSender struct { @@ -99,5 +100,6 @@ func (u *UserNotificationSender) UserStatusChangeNotification( ctx context.Context, tips *sdkws.UserStatusChangeTips, ) error { + log.ZDebug(ctx, "============UserStatusChangeNotification pre===========", "tips", tips) return u.Notification(ctx, tips.FromUserID, tips.ToUserID, constant.UserStatusChangeNotification, tips) }