pypa/pip

Log debug and informational messages to stderr only

Open

#6 758 ouverte le 21 juil. 2019

Voir sur GitHub
 (22 commentaires) (0 réactions) (0 assignés)Python (3 032 forks)batch import
help wantedstate: awaiting PRtype: enhancement

Métriques du dépôt

Stars
 (8 952 stars)
Métriques de merge PR
 (Merge moyen 13j 7h) (20 PRs mergées en 30 j)

Description

What's the problem this feature will solve?

Commands that generate output for the user (pip list, pip freeze) must be concerned with debug output.

Describe the solution you'd like

As mentioned in #6099:

  1. all log messages should go to stderr instead of stdout
  2. command API related output should use a dedicated interface that outputs to stdout

Any issue that seeks to make the CLI more usable would benefit from this change. This also avoids issues like #6024.

Alternative Solutions

Originally, ad-hoc redirection of logger output to stderr was used to preserve command output. This could be used again, but it would make logging output from commands inconsistent in pip.

Additional Context

  • #6099

Guide contributeur