Why does running a python script under powershell with logging enabled show below (standard python logging module)
python : INFO:root:File Creation Started at 18-Aug-2020
At C:\Untitled1.ps1:17 char:5
+ python "File Creation.py" $OracleDate
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (INFO:root:XXXX... at 18-Aug-2020:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
INFO:root:Running query SELECT * FROM reporting
INFO:root:18216 records saved to .txt
INFO:root:Running query SELECT * FROM reporting
INFO:root:18216 records saved to .txt
INFO:root:Running query SELECT * FROM reporting.
INFO:root:11322 records saved to .txt
INFO:root:Running query SELECT * from reporting
INFO:root:18216 records saved to .txt
INFO:root:Running query SELECT * FROM reporting
INFO:root:18216 records saved to .txt
The script runs and does what is required and prints out all the required message but why the error? Would like to get rid of the error message.
Looks like a possible Execution-Policy but I tried running this at Administrator privileges with same result?
Python 3.8.0, Windows 10, Powershell 5.1