Commit 13f97d7c authored by zhouwei's avatar zhouwei

添加日志

parent a176b1f2
......@@ -248,7 +248,7 @@ public class FailoverGatewayFilterFactory extends AbstractGatewayFilterFactory<F
dataBuffer.read(bytes);
String body = new String(bytes, StandardCharsets.UTF_8);
// 将请求体存储在 ThreadLocal 中
log.info("cache body:{}", body);
log.info("requestId:{},cache body:{}", exchange.getAttributes().get(REQUEST_ID), body);
exchange.getAttributes().put(CACHED_REQUEST_BODY_KEY, body);
return body;
} finally {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment