mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
log
This commit is contained in:
parent
2ba7fcd628
commit
1e1381df8e
@ -1251,7 +1251,7 @@ func SetGroupMemberInfo(c *gin.Context) {
|
|||||||
if req.RoleLevel != nil {
|
if req.RoleLevel != nil {
|
||||||
reqPb.RoleLevel = &wrappers.Int32Value{Value: *req.RoleLevel}
|
reqPb.RoleLevel = &wrappers.Int32Value{Value: *req.RoleLevel}
|
||||||
}
|
}
|
||||||
|
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), " api args ", reqPb.String())
|
||||||
etcdConn := getcdv3.GetConn(config.Config.Etcd.EtcdSchema, strings.Join(config.Config.Etcd.EtcdAddr, ","), config.Config.RpcRegisterName.OpenImGroupName, req.OperationID)
|
etcdConn := getcdv3.GetConn(config.Config.Etcd.EtcdSchema, strings.Join(config.Config.Etcd.EtcdAddr, ","), config.Config.RpcRegisterName.OpenImGroupName, req.OperationID)
|
||||||
if etcdConn == nil {
|
if etcdConn == nil {
|
||||||
errMsg := req.OperationID + "getcdv3.GetConn == nil"
|
errMsg := req.OperationID + "getcdv3.GetConn == nil"
|
||||||
@ -1269,7 +1269,7 @@ func SetGroupMemberInfo(c *gin.Context) {
|
|||||||
|
|
||||||
resp.ErrMsg = respPb.CommonResp.ErrMsg
|
resp.ErrMsg = respPb.CommonResp.ErrMsg
|
||||||
resp.ErrCode = respPb.CommonResp.ErrCode
|
resp.ErrCode = respPb.CommonResp.ErrCode
|
||||||
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), " api args ", resp)
|
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), " api return ", resp)
|
||||||
c.JSON(http.StatusOK, resp)
|
c.JSON(http.StatusOK, resp)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1290,6 +1290,7 @@ func GetGroupAbstractInfo(c *gin.Context) {
|
|||||||
c.JSON(http.StatusBadRequest, gin.H{"errCode": 500, "errMsg": errMsg})
|
c.JSON(http.StatusBadRequest, gin.H{"errCode": 500, "errMsg": errMsg})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
etcdConn := getcdv3.GetConn(config.Config.Etcd.EtcdSchema, strings.Join(config.Config.Etcd.EtcdAddr, ","), config.Config.RpcRegisterName.OpenImGroupName, req.OperationID)
|
etcdConn := getcdv3.GetConn(config.Config.Etcd.EtcdSchema, strings.Join(config.Config.Etcd.EtcdAddr, ","), config.Config.RpcRegisterName.OpenImGroupName, req.OperationID)
|
||||||
if etcdConn == nil {
|
if etcdConn == nil {
|
||||||
errMsg := req.OperationID + "getcdv3.GetConn == nil"
|
errMsg := req.OperationID + "getcdv3.GetConn == nil"
|
||||||
@ -1303,6 +1304,7 @@ func GetGroupAbstractInfo(c *gin.Context) {
|
|||||||
OpUserID: opUserID,
|
OpUserID: opUserID,
|
||||||
OperationID: req.OperationID,
|
OperationID: req.OperationID,
|
||||||
})
|
})
|
||||||
|
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), " api args ", respPb.String())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.NewError(req.OperationID, utils.GetSelfFuncName(), " failed ", err.Error())
|
log.NewError(req.OperationID, utils.GetSelfFuncName(), " failed ", err.Error())
|
||||||
c.JSON(http.StatusInternalServerError, gin.H{"errCode": 500, "errMsg": err.Error()})
|
c.JSON(http.StatusInternalServerError, gin.H{"errCode": 500, "errMsg": err.Error()})
|
||||||
@ -1312,6 +1314,7 @@ func GetGroupAbstractInfo(c *gin.Context) {
|
|||||||
resp.ErrCode = respPb.CommonResp.ErrCode
|
resp.ErrCode = respPb.CommonResp.ErrCode
|
||||||
resp.Data.GroupMemberNumber = respPb.GroupMemberNumber
|
resp.Data.GroupMemberNumber = respPb.GroupMemberNumber
|
||||||
resp.Data.GroupMemberListHash = respPb.GroupMemberListHash
|
resp.Data.GroupMemberListHash = respPb.GroupMemberListHash
|
||||||
|
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), " api return ", resp)
|
||||||
c.JSON(http.StatusOK, resp)
|
c.JSON(http.StatusOK, resp)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user