From c70402f1612a10686fd45b4e75672d1019c8e7cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E5=86=B7?= Date: Thu, 24 May 2018 16:09:33 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E4=BA=86=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=20BUG,=20=E5=8F=AA=E6=9C=89500=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E8=AE=B0=E5=BD=95exception=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../github/pig/gateway/service/impl/LogSendServiceImpl.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pig-gateway/src/main/java/com/github/pig/gateway/service/impl/LogSendServiceImpl.java b/pig-gateway/src/main/java/com/github/pig/gateway/service/impl/LogSendServiceImpl.java index 0128316c..9cc5899d 100644 --- a/pig-gateway/src/main/java/com/github/pig/gateway/service/impl/LogSendServiceImpl.java +++ b/pig-gateway/src/main/java/com/github/pig/gateway/service/impl/LogSendServiceImpl.java @@ -63,7 +63,7 @@ public class LogSendServiceImpl implements LogSendService { } //正常发送服务异常解析 - if (requestContext.getResponseStatusCode() != HttpStatus.SC_OK + if (requestContext.getResponseStatusCode() == HttpStatus.SC_INTERNAL_SERVER_ERROR && requestContext.getResponseDataStream() != null) { InputStream inputStream = requestContext.getResponseDataStream(); ByteArrayOutputStream baos = new ByteArrayOutputStream(); @@ -87,7 +87,6 @@ public class LogSendServiceImpl implements LogSendService { IoUtil.close(baos); IoUtil.close(inputStream); } - } //网关内部异常