Log to nullOutputStream() instead of hijacking System.out by default

master
Graham 5 years ago
parent 08f5ff034a
commit 37ccfa342d
  1. 4
      src/main/java/org/apache/harmony/unpack200/Archive.java

@ -148,7 +148,7 @@ public class Archive {
segment.setLogLevel(logLevel);
segment
.setLogStream(logFile != null ? (OutputStream) logFile
: (OutputStream) System.out);
: OutputStream.nullOutputStream());
segment.setPreRead(false);
if (i == 1) {
@ -245,4 +245,4 @@ public class Archive {
this.deflateHint = deflateHint;
}
}
}

Loading…
Cancel
Save