Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore the original warnings.showwarning #1620

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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.

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