Skip to content

Commit

Permalink
Revert "IJ1Helper: always redirect stdout and stderr"
Browse files Browse the repository at this point in the history
This reverts commit 2447ea0.

This address Fiji bug 984:
http://fiji.sc/bugzilla/show_bug.cgi?id=984

As well as several complaints on the mailing lists.

It seems that many people use the ImageJ1 Log window for macro output,
and conflating anything else into that window disrupts workflows.

So, we will need to find another way to preserve vital information
dumped to stdout and stderr. Perhaps a dedicated Console window? It
should probably not appear automatically though unless an exception
is detected. See issue #97 for details.
  • Loading branch information
ctrueden committed Jan 8, 2015
1 parent 2d3a491 commit 3950a27
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/main/java/net/imagej/legacy/IJ1Helper.java
Expand Up @@ -40,7 +40,6 @@
import ij.WindowManager;
import ij.gui.ImageWindow;
import ij.gui.Toolbar;
import ij.io.LogStream;
import ij.io.Opener;
import ij.macro.Interpreter;
import ij.plugin.Commands;
Expand Down Expand Up @@ -130,10 +129,6 @@ public void initialize() {
IJ.runPlugIn("ij.IJ.init", "");
}
if (ij1 != null) {
// always redirect stdout and stderr to the ImageJ 1.x Log window
System.setOut(new LogStream());
System.setErr(new LogStream());

// NB: *Always* call System.exit(0) when quitting:
// - In the case of batch mode, the JVM needs to terminate at the
// conclusion of the macro/script, regardless of the actions performed
Expand Down

0 comments on commit 3950a27

Please sign in to comment.