kkf1 commented on code in PR #275:
URL: https://github.com/apache/servicecomb-kie/pull/275#discussion_r1067655712


##########
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]

Reply via email to