Flask Is Not Printing Sys.stdout.write Messages
I am running the flask app from this link using the command python app.py. More logs printed using, sys.stdout.write are not printed on the console. However using logging.StreamHa
Solution 1:
afaik flasks app.run()
uses the gunicorn
web package
I believe gunicorn is the one that is actually redirecting your output
the output might be in /var/log/gunicorn/error.log
(not sure where it would be on windows :/)
or its possible sys.stdout
is just not flushing its buffer,
try sys.stdout.flush()
after writting to it
Post a Comment for "Flask Is Not Printing Sys.stdout.write Messages"