Skip to content

Commit

Permalink
Don't touch System.err
Browse files Browse the repository at this point in the history
  • Loading branch information
Bencodes committed Jan 18, 2022
1 parent 4ca6fee commit 1fda21d
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -546,15 +546,9 @@ public static WorkerIO redirectSystemStreams() throws IOException {

// Redirect System.out to System.err
System.setOut(originalErrorStream);
System.setErr(originalErrorStream);

return new WorkerIO(
originalOutputStream,
originalErrorStream,
() -> {
System.setOut(originalOutputStream);
System.setErr(originalErrorStream);
});
originalOutputStream, originalErrorStream, () -> System.setOut(originalOutputStream));
}

/** Returns the original output stream most commonly provided by {@link System#out} */
Expand Down

0 comments on commit 1fda21d

Please sign in to comment.