uvicorn.debug is not defined #2385
Unanswered
truekonrads
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
uvicorn logging is not straight forward. A common suggested answer is to do this
Which is fine, except that
logger.debug("Hello, debugger")
doesn't work as the log-level of debug is not defined for this logger even with this:uvicorn.run(app, host="0.0.0.0", port=8000, log_level="debug")
So the suggestion is to define uvicorn.debug as log level which also outputs to stdout by default
Beta Was this translation helpful? Give feedback.
All reactions