I have a module that moves backup files around after a site is backed up. If it fails, it calls:

<?php
drush_set_error('PROVISION_BACKUP_FAILED', dt("Could not move source file to target: !target", array('!target' => $target)));
?>

Lately, it has been failing a lot, but I never realized it because the backup tasks were still reporting green, despite having this drush error in the logs. Is this not the correct way to throw an error during a task, or is this a bug? Thanks.

Comments

steven jones’s picture

Status: Active » Postponed (maintainer needs more info)

Are you still seeing this?

ergonlogic’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

We're working on a similar issue in #1931000: Missing drush backend output in frontend log. I'm marking this as a duplicate, since there hasn't been an update in quite a while. Feel free to re-open, or post a new issue, if you observe similar behaviour recurring.