Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Update log and warning logger functions comment according to the actual functionality#5979

Merged
schlessera merged 1 commit into
wp-cli:mainwp-cli/wp-cli:mainfrom
matiasbenedetto:add/quiet-to-commentmatiasbenedetto/wp-cli:add/quiet-to-commentCopy head branch name to clipboard
Feb 5, 2025
Merged

Update log and warning logger functions comment according to the actual functionality#5979
schlessera merged 1 commit into
wp-cli:mainwp-cli/wp-cli:mainfrom
matiasbenedetto:add/quiet-to-commentmatiasbenedetto/wp-cli:add/quiet-to-commentCopy head branch name to clipboard

Conversation

@matiasbenedetto

Copy link
Copy Markdown
Contributor

What?

Update log and warning logger functions comment according to the actual functionality.

In this PR I'm updating those 2 function comments to state that as the other logging function being muted by the --quiet command. Example:

* Success message is written to STDOUT, or discarded when `--quiet` flag is supplied.

Why?

Both functions log nothing when running wp-cli with --quiet option.

Reference:

/**
* Warning messages aren't logged.
*
* @param string $message Message to write.
*/
public function warning( $message ) {
// Nothing.
}

@schlessera schlessera merged commit c62f232 into wp-cli:main Feb 5, 2025
@schlessera schlessera added the scope:documentation Related to documentation label Feb 5, 2025
@schlessera schlessera added this to the 2.12.0 milestone Feb 5, 2025
@schlessera

Copy link
Copy Markdown
Member

Thanks for the PR, @matiasbenedetto !

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

Labels

scope:documentation Related to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.