I am running a python script that has already been deployed to a target server. I’m executing the python script with a Powershell command as under different conditions the script will have different arguments.
In the python script, I’m using the logging module. Why does Octopus see info logging output as an error and how can I get Octopus to see it as just Info logging?
Thank you for the information and I’m sorry that you’ve hit this issue.
It seems like this is a fairly common issue with when executing python, java etc via certain shells. It seems that sometimes logs erroneously get submitted to stderr as opposed to stdout.
Would you be able to redirect your stderr to stdout or alternativily to null or a different file?
Not being strong in Python, I’m going to have to take your word for it, but I really appreciate that you’ve posted the code. Anyone who stumbles upon this ticket will have a great solution at their fingertips.