I encoded a flash application on the server. I run it as shown below: -
export FLASK_APP=mypyhthonfile
nohup flask run --host=host-ip --port=port-number
There are instructions for the log in the python script:
Logger.info("this is a log")
Logger statements are printed both in the log file and in nohup.out
How can I avoid printing log statements in nohup.out?
source
share