poetry icon indicating copy to clipboard operation
poetry copied to clipboard

Add ability to set verbosity level through environment variable

Open benbariteau opened this issue 2 years ago • 3 comments

  • [x] I have searched the issues of this repo and believe that this is not a duplicate.
  • [x] I have searched the FAQ and general documentation and believe that my question is not already covered.

Feature Request

Currently, log verbosity can only be set through the command line (e.g. poetry install -vvv), but sometimes it would be nice to set it via environment variable. For example, if the invocation of poetry is outside of your control, such as (in my case) dh-poetry.

benbariteau avatar Mar 03 '23 21:03 benbariteau

there are hundreds of well-meaning feature requests on this repository which, realistically, are never going to happen unless the raiser submits an MR (and maybe not even then).

I think this is among them.

dimbleby avatar Mar 03 '23 23:03 dimbleby

@benbariteau On the off chance that you still have need for it, I had this same thought and wound up writing a wrapper script to accomplish this. Feel free to use it, should work for any POSIX environment.

Cheers!

https://github.com/DJStompZone/PoetryVerbosity

DJStompZone avatar Jul 23 '24 13:07 DJStompZone

There is SHELL_VERBOSITY flag that sets up the verbosity level. It should probably be added to docs somewhere.

Secrus avatar Jul 23 '24 13:07 Secrus