You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks!
I have upgraded to 5.4.8, that fix my problem.
With 5.4.8, if environ var PSUTIL_DEBUG doesn't exist or empty before first psutil import,
there are no debug msgs.
To re-enable them I should create and set the var to a non-empty value.
how to disable psutil debug messages?
I'm using psutil 5.4.7 with python 3.4 on winXP
and getting a lot of
"psutil-debug> GetActiveProcessorCount() not available;
usingGetNativeSystemInfo()"
I'm looking for python command (better) or environment variable,
but can't find a solution,
not in docs https://psutil.readthedocs.io/en/latest/index.html#,
nor in notes #1173
e.g., this doesn't help (and, maybe, shouldn't):
in script.py:
...
try: print("PSUTIL_DEBUG = {}".format(os.environ["PSUTIL_DEBUG"]))
except Exception as e: print(e)
os.environ["PSUTIL_DEBUG"] = "0"
print("PSUTIL_DEBUG = {}".format(os.environ["PSUTIL_DEBUG"]))
...
in win powerShell:
PS ... > cmd /c "set PSUTIL_DEBUG=0 && python .\script.py"
PSUTIL_DEBUG = 0
PSUTIL_DEBUG = 0
The text was updated successfully, but these errors were encountered: