Skip to content

Commit

Permalink
Log exceptions to file
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed Oct 26, 2023
1 parent fe20d25 commit 7f04c6d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -523,8 +523,8 @@ private static boolean sendIpc(int id, String... args) {

// IPC client
public static void main(String[] args) {
try (PrintStream logFile = new PrintStream("ipc-client-log.txt")) {
ActualLoadingScreen.logFile = logFile;
try {
logFile = new PrintStream("ipc-client-log.txt");
startLoadingScreen(false);
final DataInputStream in = new DataInputStream(System.in);
mainLoop:
Expand Down Expand Up @@ -564,7 +564,6 @@ public static void main(String[] args) {
} catch (Exception e) {
println("Error in IPC client", e);
}
logFile = null;
close();
}
}

0 comments on commit 7f04c6d

Please sign in to comment.