From 005db2b26af4a7bc66e35268c6691dfca8c4da50 Mon Sep 17 00:00:00 2001 From: makejava <1353036300@qq.com> Date: Thu, 27 Oct 2022 11:01:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B5=81=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/sjhy/plugin/tool/GlobalTool.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sjhy/plugin/tool/GlobalTool.java b/src/main/java/com/sjhy/plugin/tool/GlobalTool.java index e489bf3..720949a 100644 --- a/src/main/java/com/sjhy/plugin/tool/GlobalTool.java +++ b/src/main/java/com/sjhy/plugin/tool/GlobalTool.java @@ -161,7 +161,7 @@ public class GlobalTool extends NameUtils { } catch (Throwable e) { // 其他任何异常都捕获 ByteArrayOutputStream out = new ByteArrayOutputStream(); - PrintStream printStream = new PrintStream(new ByteArrayOutputStream()); + PrintStream printStream = new PrintStream(out); e.printStackTrace(printStream); // 字节流的close方法本身就是空方法,没必要执行close操作 debugMethod.setValue("调用发生异常:" + out);