django / daphne

Django Channels HTTP/WebSocket server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

minor: ansi codes in log output

mustafa0x opened this issue · comments

I use Rich as my Django logger, as described here: https://www.willmcgugan.com/blog/tech/post/richer-django-logging/

Everything worked fine with runserver, however once I started using Daphene there were ansi codes in the output.

image

I opened an issue in the Rich repo, but was advised that the issue is likely with Daphne Textualize/rich#2127.

Happy to accept a contribution making this work... — but what exactly is the issue, and can you pin it down to where the problem in Daphne is — likely access.py?

Thanks for the reply! I took a look and nothing stood out. Hope to inspect more later.