Skip to content

Add a --quiet flag that suppresses all CLI output.#763

Merged
Kenadia merged 2 commits intogoogle:masterfrom
jettisonjoe:quiet_mode
May 4, 2018
Merged

Add a --quiet flag that suppresses all CLI output.#763
Kenadia merged 2 commits intogoogle:masterfrom
jettisonjoe:quiet_mode

Conversation

@jettisonjoe
Copy link
Contributor

@jettisonjoe jettisonjoe commented Apr 20, 2018

This change is Reviewable

@wallacbe
Copy link

PTAL, thanks

Copy link
Contributor

@Kenadia Kenadia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm with one comment

"""
if CLI_QUIET:
return
logger.debug(ANSI_ESC_RE.sub('', msg))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The behavior wrt logging seems inconsistent. In most places in this file, we continue to log messages if CLI_QUIET is False. Here, in banner_print, we don't log if CLI_QUIET is False. In bracket_print there is no logging at all.

@Kenadia Kenadia merged commit 148a6c6 into google:master May 4, 2018
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.

3 participants