Do not write logger.info () to nohup.out

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?

+4
source share

Source: https://habr.com/ru/post/1690383/


All Articles