T
T
The-TS2021-05-05 23:03:57
Flask
The-TS, 2021-05-05 23:03:57

How to remove messages from Flask?

Hello
How can I remove ALL messages from app.run()(Flask). It is not only debug, but also these messages:

* Serving Flask app "main" (lazy loading)
 * Environment: production

In short: how to remove ALL messages from Flask?
Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
GavriKos, 2021-05-05
@Pyhon3x

Redirect output to /dev/null for example. We need more details about the environment - where to remove it from)

M
MinTnt, 2021-05-05
@MinTnt

Have you tried app.run(debug=False)?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question