public function DrushLog::error in Realistic Dummy Content 8
Overrides Log::error
File
- api/
src/ loggers/ DrushLog.php, line 18 - Define autoload class.
Class
Namespace
Drupal\realistic_dummy_content_api\loggersCode
public function error($text, $vars = array()) {
$this
->log('_FAILURE');
drush_set_error('_ERROR', dt($text, $vars));
drush_set_context('DRUSH_ERROR_CODE', 1);
// we need this for jenkins to get 1 to show up in $? With drush_die(1)
// $? returns 0 in the command line.
die(1);
}