...
|
...
|
@@ -18,7 +18,7 @@ func CreateRequstLogFilter(logger *logs.BeeLogger) func(ctx *context.Context) { |
|
|
if ctx.Input.GetData("requestBody") != nil {
|
|
|
body = string(ctx.Input.GetData("requestBody").([]byte))
|
|
|
}
|
|
|
logger.Debug(fmt.Sprintf("====>Recv RequestId:%s BodyData:%s \n Header:%v", requestId, body, ctx.Request.Header))
|
|
|
logger.Debug(fmt.Sprintf("====>Recv User:%v RequestId:%s BodyData:%s", ctx.Input.GetData("UserId"), requestId, body))
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -43,10 +43,5 @@ func CreateRequestBodyFilter() func(ctx *context.Context) { |
|
|
ctx.Input.SetData("requestBody", body)
|
|
|
ctx.Request.Body.Close()
|
|
|
}
|
|
|
//if len(ctx.Input.RequestBody) == 0 {
|
|
|
//
|
|
|
//} else {
|
|
|
// ctx.Input.SetData("requestBody", ctx.Input.RequestBody)
|
|
|
//}
|
|
|
}
|
|
|
} |
...
|
...
|
|