mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-01-10 22:27:07 +08:00
feat: add log in write binary msg
This commit is contained in:
parent
3d4899b27a
commit
76e8649afd
@ -271,11 +271,13 @@ func (c *Client) replyMessage(ctx context.Context, binaryReq *Req, err error, re
|
|||||||
ErrMsg: errResp.ErrMsg,
|
ErrMsg: errResp.ErrMsg,
|
||||||
Data: resp,
|
Data: resp,
|
||||||
}
|
}
|
||||||
|
t := time.Now()
|
||||||
log.ZDebug(ctx, "gateway reply message", "resp", mReply.String())
|
log.ZDebug(ctx, "gateway reply message", "resp", mReply.String())
|
||||||
err = c.writeBinaryMsg(mReply)
|
err = c.writeBinaryMsg(mReply)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.ZWarn(ctx, "wireBinaryMsg replyMessage", err, "resp", mReply.String())
|
log.ZWarn(ctx, "wireBinaryMsg replyMessage", err, "resp", mReply.String())
|
||||||
}
|
}
|
||||||
|
log.ZDebug(ctx, "wireBinaryMsg end", "time cost", time.Since(t))
|
||||||
|
|
||||||
if binaryReq.ReqIdentifier == WsLogoutMsg {
|
if binaryReq.ReqIdentifier == WsLogoutMsg {
|
||||||
return errs.New("user logout", "operationID", binaryReq.OperationID).Wrap()
|
return errs.New("user logout", "operationID", binaryReq.OperationID).Wrap()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user