pallets/flask

Unable to silence logging messages

AlexKurek opened this issue · 1 comments

Im getting ~15 of:

127.0.0.1 - - [16/Mar/2024 12:10:13] "POST / HTTP/1.1" 200 -

in the terminal when Im running a Dash application.

server = flask.Flask(__name__)
app = dash.Dash(
    __name__,
    server=server,
    external_stylesheets=[dbc.themes.BOOTSTRAP],
    meta_tags=[
        {"name": "viewport", "content": "width=device-width, initial-scale=1"}
    ],
)

(https://github.com/AlexKurek/srt-py/blob/master/srt/dashboard/app.py#L53)

How do I silence them? I have found a lot of methods, e.g. Disable console messages in Flask server, but none of them worked. My guess is that since they worked in previous versions of Flask - could this be a regression?

Environment:

  • Python version: 3.11
  • Flask version: 3.0.2