Commit 13f97d7c authored by zhouwei's avatar zhouwei

添加日志

parent a176b1f2
...@@ -248,7 +248,7 @@ public class FailoverGatewayFilterFactory extends AbstractGatewayFilterFactory<F ...@@ -248,7 +248,7 @@ public class FailoverGatewayFilterFactory extends AbstractGatewayFilterFactory<F
dataBuffer.read(bytes); dataBuffer.read(bytes);
String body = new String(bytes, StandardCharsets.UTF_8); String body = new String(bytes, StandardCharsets.UTF_8);
// 将请求体存储在 ThreadLocal 中 // 将请求体存储在 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); exchange.getAttributes().put(CACHED_REQUEST_BODY_KEY, body);
return body; return body;
} finally { } 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