little-cui commented on code in PR #275:
URL: https://github.com/apache/servicecomb-kie/pull/275#discussion_r1067654040
##########
server/resource/v1/kv_resource.go:
##########
@@ -78,7 +78,8 @@ func (r *KVResource) Post(rctx *restful.Context) {
kv.Project = rctx.ReadPathParameter(common.PathParameterProject)
kv, postErr := kvsvc.Create(rctx.Ctx, kv)
if postErr != nil {
- WriteErrResponse(rctx, postErr.Code, postErr.Message)
+ openlog.Error(fmt.Sprintf("post kv [%v] failed, err:%s", kv,
postErr.Error()))
+ WriteErrResponse(rctx, postErr.Code, postErr.Error())
Review Comment:
像是共性问题,可以排查下其他接口是否有相同的问题
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]