✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

Prevent POST /_dash-update-component HTTP/1.1 messages

Is there a way to eliminate the “POST /_dash-update-component HTTP/1.1” messages from being displayed?

Thanks,
Steve

try this:

import logging

logging.getLogger('werkzeug').setLevel(logging.ERROR)

we’re considering making this the default in https://github.com/plotly/dash/issues/270

Did this get fixed?

I tried the two lines before defining the app and it doesn’t seem to have any effect. Any thoughts?

import logging

logging.getLogger('werkzeug').setLevel(logging.ERROR)

URL_BASE_PATHNAME = '/'+'example/'

server = Flask(__name__)

app = Dash(name=__name__, server=server,
           url_base_pathname=URL_BASE_PATHNAME)

For future me and/or other users, if you’re getting these log messages, they might be coming from uWSGI’s loggers, e.g. messages that start off like this:

Jun 22 15:44:06 172-16-193-97 uwsgi: [pid: 11547...]

If so, you can silence them in your uWSGI configuration, e.g.:

logger = syslog
log-4xx = true
log-5xx = true
disable-logging = true