question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unsolicited messages output to stdout, --quiet does not do anything

See original GitHub issue
  1. Install Poetry 0.12.17
  2. poetry config settings.virtualenvs.create false
  3. Try to run something using poetry run. Observe that a message “Skipping virtualenv creation, as specified in config file.” is output to stdout.
  4. Try poetry -q run, poetry run --quiet and other variations thereof. Observe that nothing is run and an exception is raised.

There should be a way to suppress all output other than that of the command being run. Otherwise it’s impossible to run scripts reliably.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:22
  • Comments:20 (9 by maintainers)

github_iconTop GitHub Comments

6reactions
benrioucommented, Sep 8, 2021

I would be interested on an update on this. 😃

5reactions
sfermigiercommented, Dec 3, 2020

I’ve been struggling with a similar issue (with Poetry 1.1.4) and I believe I have found several inconsistencies:

  • poetry -q install is quiet, but doesn’t do anything (seemingly)
  • poetry install -q works, but is as verbose as poetry install
  • poetry -q update doesn’t do anything (quietly)
  • poetry update -q works as expected, quietly
  • poetry --ansi <whatever> gives an error message. Same with --no-ansi or -v.

This is also inconsistent with the usage:

USAGE
  poetry [-h] [-q] [-v [<...>]] [-V] [--ansi] [--no-ansi] [-n] <command> [<arg1>] ... [<argN>]

Ideally, it shouldn’t matter wether -q, -v, --ansi, etc. are before or after the command.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Suppress STDOUT during RSpec, but not Pry - Stack Overflow
Now, I have to explicitly create the Cli instances in my tests with quiet: true , but I can run RSpec without unwanted...
Read more >
Wget is silent, but it displays error messages - Super User
I want to download a file with Wget, but per the usual UNIX philosophy, I don't want it to output anything if the...
Read more >
Why do many commands provide a "quiet" option?
Well, quiet means that no response is expected; it would be unexpected if we'd see output anyway. (In case that there's anyway something...
Read more >
Python Recipes- Suppress Stdout And Stderr Messages
Python recipes to suppress stdout and stderr messages into devnull or your own log file via context manager.
Read more >
STDOUT and STDERR redirection for nc - bash - Ask Ubuntu
-q, --quiet, --silent Quiet; do not write anything to standard output. Exit immediately with zero status if any match is found, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found