Skip to content

Conversation

mjnaderi
Copy link

Fixes django/daphne#352

Summary: When running manage.py runserver, daphne calls twisted's globalLogBeginner.beginLoggingTo, which overrides warnings.showwarning. So all warnings are being disabled. More details in django/daphne#352

This workaround, stores the original showwarning method and restores it when server is ready.

Base automatically changed from master to main March 3, 2021 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Daphne disables warnings module
2 participants