disable_existing_loggers not working when reload enabled #2209
Unanswered
ttecles
asked this question in
Potential Issue
Replies: 1 comment
-
It seems to me that you must set
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am seeing a strange behaviour when setting the log_config and there is already a log handler set. I have a framework that already sets the format for me so I don't want uvicorn to set formatting and just propagate the errors to the root logger which holds the handlers and the formatters
Here is the code I am using to reproduce it:
And here is the output when I access
http://localhost:8000/
:But see what happens if I enable the reload (
reload=True
) and access the index pathhttp://localhost:8000/
:I get different
uvicorn.error
outputs which I guess it's ok since it's using theChangeReload
but I get no access logs which is strange. I have usedlogging_tree
to see what's configured and seems it's not preserving thedisable_existing_loggers
:Beta Was this translation helpful? Give feedback.
All reactions