Skip to content

Commit

Permalink
FISH-9196 settings autoflushed to false, keeping default behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
NotedSalmon committed Aug 9, 2024
1 parent 6b577bb commit a4c1330
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ protected DBControl(final String dbCommand, final String dbHost, final String db
}

// Redirect stdout and stderr to a file
try (PrintStream printStream = new PrintStream(new FileOutputStream(dbLog, true), true, StandardCharsets.UTF_8)) {
try (PrintStream printStream = new PrintStream(new FileOutputStream(dbLog, true), false, StandardCharsets.UTF_8)) {
System.setOut(printStream);
System.setErr(printStream);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
import java.net.URLConnection;
import java.net.URLEncoder;
import java.net.UnknownHostException;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Base64;
import java.util.Iterator;
Expand Down Expand Up @@ -932,7 +931,7 @@ private void doHttpCommand(String uriString, String httpMethod,
} catch (Exception e) {
logger.log(Level.FINER, "doHttpCommand: exception", e);
ByteArrayOutputStream buf = new ByteArrayOutputStream();
e.printStackTrace(new PrintStream(buf, true, UTF_8));
e.printStackTrace(new PrintStream(buf, false, UTF_8));
logger.finer(buf.toString(UTF_8));
throw new CommandException(e);
}
Expand Down

0 comments on commit a4c1330

Please sign in to comment.