Auto-flush our log file after every line written.
This commit is contained in:
@@ -598,7 +598,7 @@ public class Getdown extends Thread
|
|||||||
File log = new File(appDir, "launcher.log");
|
File log = new File(appDir, "launcher.log");
|
||||||
try {
|
try {
|
||||||
PrintStream logOut = new PrintStream(
|
PrintStream logOut = new PrintStream(
|
||||||
new BufferedOutputStream(new FileOutputStream(log)));
|
new BufferedOutputStream(new FileOutputStream(log)), true);
|
||||||
System.setOut(logOut);
|
System.setOut(logOut);
|
||||||
System.setErr(logOut);
|
System.setErr(logOut);
|
||||||
} catch (IOException ioe) {
|
} catch (IOException ioe) {
|
||||||
|
|||||||
Reference in New Issue
Block a user