|
@@ -257,15 +257,10 @@ public class AccessLogFilter implements GlobalFilter, Ordered {
|
|
DataBufferUtils.release(join);
|
|
DataBufferUtils.release(join);
|
|
String responseResult = new String(content, StandardCharsets.UTF_8);
|
|
String responseResult = new String(content, StandardCharsets.UTF_8);
|
|
|
|
|
|
- ResultData resultData = null;
|
|
|
|
- try {
|
|
|
|
- resultData = JSON.parseObject(responseResult, ResultData.class);
|
|
|
|
- gatewayLog.setCode(resultData.getCode());
|
|
|
|
- gatewayLog.setMessage(resultData.getMessage());
|
|
|
|
- gatewayLog.setResponseData(JSON.toJSONString(resultData.getData()));
|
|
|
|
- }catch (Exception e){
|
|
|
|
- log.warn("打印日志,结果转换出错..");
|
|
|
|
- }
|
|
|
|
|
|
+ ResultData resultData = JSON.parseObject(responseResult, ResultData.class);
|
|
|
|
+ gatewayLog.setCode(resultData.getCode());
|
|
|
|
+ gatewayLog.setMessage(resultData.getMessage());
|
|
|
|
+ gatewayLog.setResponseData(JSON.toJSONString(resultData.getData()));
|
|
|
|
|
|
return bufferFactory.wrap(content);
|
|
return bufferFactory.wrap(content);
|
|
}));
|
|
}));
|