So how do I stop running it as root?So you're running it as root. That's the sole cause of your problem. Stop doing that (unless something in your code requires elevated privileges). Your log also won't record anything useful as it'll have the redirected output from sudo not from your python code.
Statistics: Posted by sandy70 — Sun Mar 23, 2025 11:20 pm