Fix log duplication
Add argument to control print behavior of run_command function. Disable it when unnecessary to print log.
Signed-off-by: xu1zhou [email protected]
it seems something happend to CI test. I think it's not due to my modification cause the failed. @gyohuangxin Do you have any clue?
@xu1zhou Hi, don't worry about the CircleCI test failure, it often fails due to the OOM. Please focus on the test results of Azure pipleines, they work fine.

@xu1zhou Hi, don't worry about the CircleCI test failure, it often fails due to the OOM. Please focus on the test results of Azure pipleines, they work fine.
Thanks, will check reason for that
Hi @gyohuangxin I think pipeline test has passed this time.
It's possible to give run_command a lower logger level to avoid log duplication in this case. But it will also affect all the other run_command functions.
@xu1zhou Yes, setting logging level will affect all the functions which use run_command.
The default log level is debug, so how about to set the logs of run_command to trace level? For example, log.trace(f"Returning output: [{output}]")
If someone want to see this log, he/she can set the log level to trace without change many functions' parameter value to True.
@xu1zhou Do you have any updates?
@xu1zhou Do you have any updates?
Sorry, busy with some other thing these day. I would have a update this week.
@xu1zhou Don't worry about this, thanks.
Closing for inactivity. Feel free to reopen this when ready.