mirror of https://gitee.com/maxjhandsome/pig
🐛 修复了一个 BUG, 只有500错误记录exception信息
This commit is contained in:
parent
fd117d96ec
commit
c70402f161
|
@ -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) {
|
&& requestContext.getResponseDataStream() != null) {
|
||||||
InputStream inputStream = requestContext.getResponseDataStream();
|
InputStream inputStream = requestContext.getResponseDataStream();
|
||||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||||
|
@ -87,7 +87,6 @@ public class LogSendServiceImpl implements LogSendService {
|
||||||
IoUtil.close(baos);
|
IoUtil.close(baos);
|
||||||
IoUtil.close(inputStream);
|
IoUtil.close(inputStream);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//网关内部异常
|
//网关内部异常
|
||||||
|
|
Loading…
Reference in New Issue