Skip to content

--quiet suppression of progress bar not honored when specifying custom log location with --log /path/to/log.log #10915

@ghost

Description

Description

when executing pip using both --quiet and --log, the progress bar is shown.

primarily using python 3.8 with pip version 21.1.1 on linux, however tested to see the same behavior with python 3.10 & pip 21.3.1 on windows. commands executed:

linux (python 3.8, pip 21.1.1): python3.8 -m pip install --quiet --no-cache-dir --no-deps --log ./test.log --target ./test numpy
windows (python 3.10, pip 21.3.1): python -m pip install --quiet --no-cache-dir --no-deps --log ./test.log --target ./test numpy

in this case, we're automatically creating necessary archives for lambda layers so we don't want any additional noise except errors, etc, which we're already capturing.

Expected behavior

expected behavior: completely silent output including no progress bar.

pip version

21.1.1

Python version

3.8

OS

linux

How to Reproduce

run python -m pip install --quiet --no-cache-dir --no-deps --log ./test.log --target ./test numpy to see progress bar

run python -m pip install --quiet --no-cache-dir --no-deps --target ./test numpy to see silent operation

Output

python3.8 -m pip install --quiet --no-cache-dir --no-deps --log ./test.log --target ./test numpy
     |████████████████████████████████| 16.8 MB 2.5 MB/s

python3.8 -m pip install --quiet --no-cache-dir --no-deps --target ./test numpy

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    S: needs triageIssues/PRs that need to be triagedtype: bugA confirmed bug or unintended behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions