global logging breaks when uvicorn.run(reload=True) #1498
Unanswered
Lx
asked this question in
Potential Issue
Replies: 1 comment 3 replies
-
Do you have a repository/gist so I can reproduce that? 🙏 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a script that sets up logging via
logging.basicConfig
, then starts Uvicorn usinguvicorn.run
.If I don't use
reload=True
in theuvicorn.run
call, logging works as expected.If I do use
reload=True
in theuvicorn.run
call:root
logger (belonging tologging
) gets obliterated (itsid
even changes)stderr
.This problem exists in the latest released version at the time of this discussion being opened: 0.17.6.
Am I okay to raise this as a "real" issue?
One further detail in case it helps: the problem exists with or without installation of
watchgod
.Beta Was this translation helpful? Give feedback.
All reactions