Replies: 6 comments 19 replies
-
Try this. |
Beta Was this translation helpful? Give feedback.
-
Perhaps it is the application server that is doing the logging, which wsgi server are you using? Check to see how to limit logging there. |
Beta Was this translation helpful? Give feedback.
-
Great, have you tried to silence the logging at that level to see if that resolves the issue for you? I've seen some related discussion here: and in the documentation: they suggest something like Edit: |
Beta Was this translation helpful? Give feedback.
-
Can you provide a minimum reproducible example? Also it might be good to analyze the results of the things you've tried beyond does or does not work. The first solution you tried is setting the log level, does the app seem to be respecting that or are you seeing entries on a lower level? |
Beta Was this translation helpful? Give feedback.
-
Ok yeah large applications can be a challenge when debugging. I just made a simple flask + dash + waitress app. Like this:
and I noticed that without the logging handlers setting the level properly I was getting INFO level messages about a task queue. However with the handlers added and level set like in this example I no longer see INFO messages, but would expect to see ERROR messages. So I think that should work. Maybe you could share more details about the exact messages are trying to silence. |
Beta Was this translation helpful? Give feedback.
-
If you look at some threads, you can see that more and more methods have stopped working over the years. For example: |
Beta Was this translation helpful? Give feedback.
-
Im getting ~15 of:
in the terminal when Im running a Dash application.
(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:
Beta Was this translation helpful? Give feedback.
All reactions