🐛 修复了一个 BUG, 只有500错误记录exception信息

This commit is contained in:
冷冷 2018-05-24 16:09:33 +08:00
parent fd117d96ec
commit c70402f161
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}
}
//网关内部异常