delete debug

pull/853/head
pluto 2 years ago
parent 3c6acf186c
commit d8b500dd8b

@ -289,13 +289,11 @@ func (s *userServer) SetUserStatus(ctx context.Context, req *pbuser.SetUserStatu
if err != nil { if err != nil {
return nil, err return nil, err
} }
log.ZDebug(ctx, "============SetUserStatus pre===========")
for _, value := range req.StatusList { for _, value := range req.StatusList {
list, err := s.UserDatabase.GetSubscribedList(ctx, value.UserID) list, err := s.UserDatabase.GetSubscribedList(ctx, value.UserID)
if err != nil { if err != nil {
return nil, err return nil, err
} }
log.ZDebug(ctx, "============UserStatusChangeNotification pre pre===========", "list", list)
for _, userID := range list { for _, userID := range list {
tips := &sdkws.UserStatusChangeTips{ tips := &sdkws.UserStatusChangeTips{
FromUserID: value.UserID, FromUserID: value.UserID,
@ -303,11 +301,9 @@ func (s *userServer) SetUserStatus(ctx context.Context, req *pbuser.SetUserStatu
Status: value.Status, Status: value.Status,
PlatformID: value.PlatformID, PlatformID: value.PlatformID,
} }
log.ZDebug(ctx, "============UserStatusChangeNotification pre===========", "tips", tips)
s.userNotificationSender.UserStatusChangeNotification(ctx, tips) s.userNotificationSender.UserStatusChangeNotification(ctx, tips)
} }
} }
log.ZDebug(ctx, "============UserStatusChangeNotification after===========")
return &pbuser.SetUserStatusResp{}, nil return &pbuser.SetUserStatusResp{}, nil
} }

@ -21,7 +21,6 @@ import (
"github.com/OpenIMSDK/Open-IM-Server/pkg/rpcclient" "github.com/OpenIMSDK/Open-IM-Server/pkg/rpcclient"
"github.com/OpenIMSDK/protocol/constant" "github.com/OpenIMSDK/protocol/constant"
"github.com/OpenIMSDK/protocol/sdkws" "github.com/OpenIMSDK/protocol/sdkws"
"github.com/OpenIMSDK/tools/log"
) )
type UserNotificationSender struct { type UserNotificationSender struct {
@ -100,6 +99,5 @@ func (u *UserNotificationSender) UserStatusChangeNotification(
ctx context.Context, ctx context.Context,
tips *sdkws.UserStatusChangeTips, tips *sdkws.UserStatusChangeTips,
) error { ) error {
log.ZDebug(ctx, "============UserStatusChangeNotification pre===========", "tips", tips)
return u.Notification(ctx, tips.FromUserID, tips.ToUserID, constant.UserStatusChangeNotification, tips) return u.Notification(ctx, tips.FromUserID, tips.ToUserID, constant.UserStatusChangeNotification, tips)
} }

Loading…
Cancel
Save