修复流使用错误问题

This commit is contained in:
makejava 2022-10-27 11:01:56 +08:00
parent 4c19b72df8
commit 005db2b26a
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ public class GlobalTool extends NameUtils {
} catch (Throwable e) { } catch (Throwable e) {
// 其他任何异常都捕获 // 其他任何异常都捕获
ByteArrayOutputStream out = new ByteArrayOutputStream(); ByteArrayOutputStream out = new ByteArrayOutputStream();
PrintStream printStream = new PrintStream(new ByteArrayOutputStream()); PrintStream printStream = new PrintStream(out);
e.printStackTrace(printStream); e.printStackTrace(printStream);
// 字节流的close方法本身就是空方法没必要执行close操作 // 字节流的close方法本身就是空方法没必要执行close操作
debugMethod.setValue("调用发生异常:" + out); debugMethod.setValue("调用发生异常:" + out);