Menu

#56 Allow normal output to stdout and only errors to stderr

open
nobody
None
5
2017-10-06
2017-10-05
No

In 0.7 it was changed so that all output is sent to stderr, even if there are no errors. I find this confusing and counter to normal Unix philosophy. I've notice online that many others as well have issues with this https://github.com/znerd/optipng-ant-task/issues/9

Could you please switch back to logging to stderr or at least provide an option like -stdout-log that would log all output to stdout and only errors to stderr?

My use case is that I am running optipng in cron, and I want to log to a file normal operations (stdout), but detect and send email notification to myself if anything out of the ordinary happens and there is stderr output.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB