Skip to content

Commit

Permalink
Fix packet dump
Browse files Browse the repository at this point in the history
  • Loading branch information
Exceptionflug committed Dec 20, 2022
1 parent bc90829 commit 2e553cf
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ public static void writeDump(ByteBuf buf, Throwable throwable) {
try (ZipOutputStream outputStream = new ZipOutputStream(new FileOutputStream(file), StandardCharsets.UTF_8)) {
ZipEntry throwableEntry = new ZipEntry("throwable.txt");
outputStream.putNextEntry(throwableEntry);
try (PrintWriter printWriter = new PrintWriter(outputStream)) {
throwable.printStackTrace(printWriter);
}
PrintWriter printWriter = new PrintWriter(outputStream);
throwable.printStackTrace(printWriter);
outputStream.closeEntry();

ZipEntry data = new ZipEntry("data.bin");
Expand Down

0 comments on commit 2e553cf

Please sign in to comment.