Skip to content

Changed output from stdout to stderr

Ke Zhao requested to merge (removed):master into master

The printf() function will generate output to the standard output stream. This causes applications which want to parse data from the TLS stream to filter out the logging messages. Instead, we use standard output so that applications don't have to parse this data.

The result is that stdin and stdout are uniquely dedicated to stream data while stderr is used for logging messages.

Checklist

  • Code modified for feature
  • Test suite updated with functionality tests
  • Test suite updated with negative tests
  • Documentation updated / NEWS entry present (for non-trivial changes)

Reviewer's checklist:

  • Any issues marked for closing are addressed
  • There is a test suite reasonably covering new functionality or modifications
  • Function naming, parameters, return values, types, etc., are consistent and according to CONTRIBUTION.md
  • This feature/change has adequate documentation added
  • No obvious mistakes in the code

Merge request reports