[REV] print request body

This commit is contained in:
GLYASAI 2018-12-07 20:07:57 +08:00
parent d5fb978c97
commit c985858b6f

View File

@ -1391,10 +1391,9 @@ func (t *TenantStruct) PortOuterController(w http.ResponseWriter, r *http.Reques
if !httputil.ValidatorRequestStructAndErrorResponse(r, w, &(data.Body), nil) {
return
}
var bytes []byte
_ = json.Unmarshal(bytes, data)
req, _ := json.Marshal(data)
logrus.Debugf("request uri is: %v", r.RequestURI)
logrus.Debugf("request body is: %v", string(bytes))
logrus.Debugf("request body is: %v", string(req))
serviceID := r.Context().Value(middleware.ContextKey("service_id")).(string)
tenantName := r.Context().Value(middleware.ContextKey("tenant_name")).(string)