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

[BUG] minor: ansi codes in daphene output #2127

Closed
mustafa0x opened this issue Mar 29, 2022 · 3 comments
Closed

[BUG] minor: ansi codes in daphene output #2127

mustafa0x opened this issue Mar 29, 2022 · 3 comments

Comments

@mustafa0x
Copy link

mustafa0x commented Mar 29, 2022

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

Platform

Click to expand Mac, rich==11.2.0

Thank you for the incredible piece of software!

@willmcgugan
Copy link
Collaborator

This is probably because Daphne itself is writing ansi codes via logging. I would consider this an abuse of logging personally. There's not a great deal Rich can do about that.

@mustafa0x
Copy link
Author

Thanks, I'll open an issue there!

@github-actions
Copy link

Did I solve your problem?

Why not buy the devs a coffee to say thanks?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants