Skip to content

fix(context): make log_error honor --quiet regardless of stdout tty - #1984

Open
yunaremaia wants to merge 1 commit into
httpie:masterfrom
yunaremaia:fix/log-error-respect-quiet
Open

yunaremaia wants to merge 1 commit into
httpie:masterfrom
yunaremaia:fix/log-error-respect-quiet

Conversation

@yunaremaia

Copy link
Copy Markdown

Closes #1978. log_error gated the quiet check on stdout_isatty, so warnings/errors were always printed to the original stderr when stdout was redirected. Mirror apply_warnings_filter and check only the quiet threshold. Tests: tests/test_context.py pass.

log_error gated the quiet check on stdout_isatty, so warnings/errors were
always printed to the original stderr when stdout was redirected, ignoring
--quiet. Mirror apply_warnings_filter and check only the quiet threshold.

Closes httpie#1978.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: log_error ignores --quiet flag when stdout is redirected

1 participant