pipx install ignores --quiet
Describe the bug
How to reproduce
$ pipx install --quiet --quiet cowsay
creating virtual environment...
installing cowsay...
done! ✨ 🌟 ✨
installed package cowsay 6.1, installed using Python 3.10.12
These apps are now globally available
- cowsay
Expected behavior
Quiet is respected
This is as quiet as it can get... the rest of the output isn't logged.
I can see no difference with or without the --quiet flag.
And the output given by the OP is everything but quiet.
I would expect none of the lines displayed in the issue description to be printed when even the first quiet option is passed.
@chrysle, quiet should remove INFO logs:
$ pipx --help
options:
--quiet, -q Give less output. May be used multiple times corresponding to the ERROR and CRITICAL logging levels. The count maxes out at 2.
Are the following logs considered non-INFO?
creating virtual environment...
installing cowsay...
done! ✨ 🌟 ✨
installed package cowsay 6.1, installed using Python 3.10.12
These apps are now globally available
- cowsay
same problem, it prints a lot of logs even when using 2>/dev/null
pipx install --quiet mkdocs 2>/dev/null
installed package mkdocs 1.6.1, installed using Python 3.12.3
These apps are now globally available
- mkdocs
Would it make sense to have a mode (--quiet-but-for-real-this-time?) that outputs nothing at all, unless there is an error? The current status makes pipx relatively scripting-unfriendly.