mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-02 19:57:42 +08:00
[REV] print request body
This commit is contained in:
parent
d5fb978c97
commit
c985858b6f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user