Windows logging ugly without --no-use-colors in interactive CMD #2357
Unanswered
clach04
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Seeing:
Due to vt100/ANSI escape sequences being issued.
Passing in --no-use-colors fixes this issue.
Opening discussion as issue system suggested to to that instead of opening an issue.
I can think of 2 possible options (well the 3rd would be ignore this :-p):
if windows then disable colors in the logging module -
uvicorn/uvicorn/logging.py
Line 39 in 44a3071
import colorama and then enable some time before setting self.use_colors. For example, something like:
There maybe other options?
Tenuously related to #2248 - which is non-interactive
Beta Was this translation helpful? Give feedback.
All reactions