Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1edb2bda authored by Jesse Wilson's avatar Jesse Wilson Committed by Android (Google) Code Review
Browse files

Merge "Close System.out and System.err streams when they are made unreachable."

parents 65f60410 8718a51a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -264,7 +264,9 @@ public class RuntimeInit {
        // TODO: Doing this here works, but it seems kind of arbitrary. Find
        // a better place. The goal is to set it up for applications, but not
        // tools like am.
        System.out.close();
        System.setOut(new AndroidPrintStream(Log.INFO, "System.out"));
        System.err.close();
        System.setErr(new AndroidPrintStream(Log.WARN, "System.err"));

        commonInit();