Replies: 2 comments
-
I just noticed the "Discussions" feature - let me know if you want me to move this over there instead of an Issue. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@csonsino First off, if you are ever using Please see the
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to figure out how to get the stdout text that was written through the python logging library while running a pyscript.
I have the following simple pyscript (
test_script.py
):Running through the following simple shell (
main.py
):If I run the pyscript with
python3 main.py "run_pyscript test_script.py"
, I get:You can see that the logger appeared to write to
stdout
but the CommandResult did not capture it, whereas the print() wrote tostdout
and it was captured in the CommandResult.The main reason that I'm using the logging library is to be able to easily control the verbosity and amount of data that I get for each command.
Beta Was this translation helpful? Give feedback.
All reactions