Closed kevinksyTRD closed 4 years ago
This is by design, and it is normal for command-line software to operate in this way. The idea is to separate incidental messages and errors from the actual output of the program by printing them to a separate stream. This is especially important when the output is designed to be machine readable, as is the case with cosim inspect
and cosim run --mr-progress
, for example.
I should have tried --mr-progress option. :) Thanks.
When trying to retrieve the logging messages using check_output from Python, it returns an empty byte string.
Using Popen where it is possible to get stdout and stderr separately, all the info and error messages are found in stderr and stdout is empty.
This is a bit confusing when integrating cosim as a command line tool.