Flask doesn't print to console

前端 未结 5 1564
生来不讨喜
生来不讨喜 2020-12-28 12:49

I\'m new to flask, and I\'m trying to add print info to debug server side code. When launch my flask app with debug=True, i can\'t get any info print to console

I tr

5条回答
  •  無奈伤痛
    2020-12-28 13:52

    Had the same printing problem. Using sys.stdout.flush() after the print solved the issue.

提交回复
热议问题