From f1616461f71bf5abfcff1bd17863a74e4707bb66 Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Thu, 17 Feb 2022 14:36:34 +0800 Subject: [PATCH] add log --- internal/api/conversation/conversation.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/api/conversation/conversation.go b/internal/api/conversation/conversation.go index d29e47c09..3971fbad7 100644 --- a/internal/api/conversation/conversation.go +++ b/internal/api/conversation/conversation.go @@ -90,6 +90,7 @@ func GetReceiveMessageOpt(c *gin.Context) { func SetReceiveMessageOpt(c *gin.Context) { params := api.SetReceiveMessageOptReq{} if err := c.BindJSON(¶ms); err != nil { + log.NewError(params.OperationID, utils.GetSelfFuncName(), "bind json failed", err.Error()) c.JSON(http.StatusBadRequest, gin.H{"errCode": 400, "errMsg": "bind json failed " + err.Error()}) return }