Flask: console flooded with text

so here’s some code i’m working on https://replit.com/@OwenStritz/DFoSUSc?v=1, the problem is every time some one visits the website or refreshes it the console is flooded with text that idc about. how do i prevent that?

Have this at the top of your file

import logging
logging.getLogger("werkzeug").setLevel(logging.ERROR)
2 Likes

sorry i meant console

@UMARismyname’s answer should still work, unless the text that is flooding is errors.

1 Like

yea it did work thank you, i was just putting it in my code incorrectly.

1 Like

@OwenStritz If that was the solution, mark it as such :slight_smile:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.