Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fiji log goes to stderr #20

Open
atarkowska opened this issue May 23, 2019 · 1 comment
Open

fiji log goes to stderr #20

atarkowska opened this issue May 23, 2019 · 1 comment

Comments

@atarkowska
Copy link
Contributor

atarkowska commented May 23, 2019

Would it be possible to correct logger level for the following commands?
Otherwise nextflow pipeline capture that as error

/opt/fiji/entrypoint.sh --update add-update-site PTBIOP http://biop.epfl.ch/Fiji-Update
/opt/fiji/entrypoint.sh --update update

seems to print to standard error of the system rather then out.

Updating the index of available files (Updating from ImageJ site: http://up...
Updating from ImageJ site: http://update.imagej.net/ done
...
Done: Checksummer

Updating the index of available files (Updating from ImageJ site: http://up...
Updating from ImageJ site: http://update.imagej.net/ done
...
Done: Checksummer

Downloading... (fiji-linux) 
...
plugins/JACoP_B-1.1.0.jar done
Done: Downloading...

Done: Downloading...

Temporarily I had to add >/dev/stdout 2>&1 to each command

@ctrueden
Copy link
Member

It seems it has been that way for many years. See StderrProgress.

It was originally introduced here, but no explanation of the rationale for choosing stderr over stdout.

It is possible that changing it could break downstream projects, since people might be scraping the output. I also do not feel confident that stdout is a more "correct" choice than stderr for this purpose—there was probably a reason stderr was chosen. Since you already have a workaround—redirecting stderr to stdout—I'm in no hurry to make a change that entails effort without a clear technical benefit. But if this change would provide some tangible benefit, then we can do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants