From 7541285996448826e0b4ff7b66579a2f25810fa0 Mon Sep 17 00:00:00 2001 From: Gordon <46924906+FGadvancer@users.noreply.github.com> Date: Tue, 19 Sep 2023 14:27:58 +0800 Subject: [PATCH] test: send message test log. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> --- internal/api/msg.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/api/msg.go b/internal/api/msg.go index 392fa5f56..9da5bb53b 100644 --- a/internal/api/msg.go +++ b/internal/api/msg.go @@ -19,7 +19,6 @@ import ( "github.com/gin-gonic/gin" "github.com/go-playground/validator/v10" "github.com/mitchellh/mapstructure" - "github.com/openimsdk/open-im-server/v3/pkg/authverify" "github.com/openimsdk/open-im-server/v3/pkg/common/config" @@ -221,6 +220,7 @@ func (m *MessageApi) SendMessage(c *gin.Context) { } sendMsgReq.MsgData.RecvID = req.RecvID var status int + log.ZDebug(c, "send message start", "req", sendMsgReq) respPb, err := m.Client.SendMsg(c, sendMsgReq) if err != nil { status = constant.MsgSendFailed @@ -228,6 +228,7 @@ func (m *MessageApi) SendMessage(c *gin.Context) { apiresp.GinError(c, err) return } + log.ZDebug(c, "message send success", "resp", respPb) status = constant.MsgSendSuccessed _, err = m.Client.SetSendMsgStatus(c, &msg.SetSendMsgStatusReq{ Status: int32(status),