Skip to content

remove werkzeug url print statements by default? #382

Closed

Description

In many of my projects, I turn off the URL print statements with:

# Remove URL route logging
logging.getLogger('werkzeug').setLevel(logging.ERROR)

Should we do the same in Dash? Some thoughts:

  • If we do it, we'll need a way to make it overridable in case users actually do want it. That is, placing it in run_server might be too late.
  • Sometimes I find these statements useful when the dash is autorestarting and I'm refreshing the page. When the server has finished restarting, I'll see a flurry of print statements and I know that I'm ready to check out the web site. Of course, hopefully hot-reloading solves this in a more elegant way.
  • The URLs themselves aren't that useful since all of the callbacks are just POST /_dash-update-component. We could make more useful debugging statements like -> 'my-graph.figure start', -> 'my-graph.figure.end` as part of a default dev tools / environment thing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions