galaxy-iuc / standards

Documentation for standards and best practices from the Galaxy IUC
http://galaxy-iuc-standards.readthedocs.io/en/latest/
6 stars 16 forks source link

Recommend not redirecting stderr #57

Open mvdbeek opened 4 years ago

mvdbeek commented 4 years ago

This makes tool debugging a lot harder. I encountered this with the raceid tools, but also other cases in the past. If a complete log file is necessary I'd recommend something like:

command > >(tee -a stdout.log) 2> >(tee -a stderr.log >&2)
mvdbeek commented 4 years ago

playing around with this some more I think Galaxy should provide something like from_stderr in the data parameters ... Galaxy already captures this in the job run, and that would remove some particularly bad boiler plate from the wrappers.