mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-19 12:47:06 +08:00
log debug
This commit is contained in:
parent
a0a2fd470e
commit
3edf7ef7bf
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
@ -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)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user