little-cui commented on a change in pull request #1169:
URL:
https://github.com/apache/servicecomb-service-center/pull/1169#discussion_r767704882
##########
File path: server/resource/disco/schema_resource.go
##########
@@ -90,16 +94,15 @@ func (s *SchemaService) ModifySchema(w http.ResponseWriter,
r *http.Request) {
query := r.URL.Query()
request.ServiceId = query.Get(":serviceId")
request.SchemaId = query.Get(":schemaId")
- resp, err := core.ServiceAPI.ModifySchema(r.Context(), request)
- if err != nil {
- log.Error("can not update schema", err)
- rest.WriteError(w, pb.ErrInternal, "can not update schema")
+ _, svcErr := discosvc.PutSchema(r.Context(), request)
+ if svcErr != nil {
+ rest.WriteServiceError(w, svcErr)
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]