Skip to content

Disable output info on CLI? #214

@remcotolsma

Description

@remcotolsma

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:

backwpup/inc/class-job.php

Lines 617 to 620 in 0fc9138

//output info on cli
if (php_sapi_name() == 'cli' && defined('STDOUT')) {
fwrite(STDOUT, strip_tags($info));
}

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions