daphne icon indicating copy to clipboard operation
daphne copied to clipboard

minor: ansi codes in log output

Open mustafa0x opened this issue 2 years ago • 2 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 https://github.com/Textualize/rich/issues/2127.

mustafa0x avatar Mar 29 '22 17:03 mustafa0x

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?

carltongibson avatar Mar 29 '22 17:03 carltongibson

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

mustafa0x avatar Mar 31 '22 03:03 mustafa0x