wp-media / wp-media/backwpup

Disable output info on CLI?

Open
#214 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
95
Forks
46
PR merge metrics
No merged PRs in 30d

Description

We run the WordPress cron via the following cron job command:

wp cron event run --due-now --quiet

Here we deliberately use the --quiet parameter so that the command does not give any output. If there is output due to errors, we will receive an e-mail notification about it. Because BackWPup does give standard output, we now also receive a daily e-mail notification with the BackWPup CLI info:

https://github.com/wp-media/backwpup/blob/0fc91387b9375456a2261e15e0d1ae5a92c108a3/inc/class-job.php#L617-L620

Is it possible to add something to disable this CLI info write?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with inc/class-job.php around lines 617-620, where the CLI information is written during the cron job. Inspect how the command context and output are handled, then verify that running the cron with --quiet no longer emits the informational output while the requested job behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
backend, cli
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.