Permit warning and error messages to be distinguished from their text #6298
Labels
auto-locked
Outdated issues that have been locked by automation
C: logging
Information Logging
type: enhancement
Improvements to functionality
This issue is to prefix warning and error messages in pip's log output.
Background:
Currently, it's possible not to notice warning or error messages in pip's logs, or even not to know about them at all. I think the main reason for this is that the text doesn't distinguish them (e.g. with customary
WARNING
andERROR
prefixes). For example, for me it was only recently that I realized certain messages were supposed to be warnings. The only indication on my computer is that the text for warning messages has a yellow-gray color, and error messages red.Here is another example of one commenter from last month saying they didn't notice a warning:
Some other disadvantages of only using color as an indicator are that--
There could be other scenarios.
Also, even when you can see the color, it can be unclear what is meant by the color (e.g. that yellow-gray is supposed to be a warning). Some applications use these same colors to mean different things. For example, on my machine the yellow-gray and red colors are also used by git for non-error formatting (e.g.
git log
headers).I will post a PR for this shortly.
The text was updated successfully, but these errors were encountered: