Debug mode not getting propagated to event loop #2489
-
we actually hit #2464 in our production environment and while debugging this issue, we noticed that uvicorn does not pass the debug flag down to the event loop implementation. Lines 63 to 65 in fe39100 I think we need something like this?
For the issue mentioned in #2464, we were trying to capture all socket accept events. For the asyncio implementation, we were able to get that by setting an environment variable PYTHONASYNCIODEBUG. Well, uvloop actually does not log socket events, but we still wanted to enable debug mode. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The |
Beta Was this translation helpful? Give feedback.
The
PYTHONASYNCIODEBUG
is great already. Also, we don't have thedebug
argument on uvicorn.