Open wjgeorge opened 3 years ago
apparently a small chnage in python3.7, stderr is buffered so output to logfile will only happen when the buffer is full. These two command will perform differntly
sudo python3 ${HOME}/CommanderPi/src/main.py ${HOME}
vs
sudo python3 ${HOME}/CommanderPi/src/main.py ${HOME} > logfile.txt
See:
https://stackoverflow.com/questions/22471023/python-sys-stderr-flush-frequency
apparently a small chnage in python3.7, stderr is buffered so output to logfile will only happen when the buffer is full. These two command will perform differntly
sudo python3 ${HOME}/CommanderPi/src/main.py ${HOME}
vs
sudo python3 ${HOME}/CommanderPi/src/main.py ${HOME} > logfile.txt
See:
https://stackoverflow.com/questions/22471023/python-sys-stderr-flush-frequency