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