You are here

function _hosting_task_log in Hostmaster (Aegir) 6

Log a message to the current task's node if possible, the screen otherwise.

1 string reference to '_hosting_task_log'
drush_hosting_task_validate in modules/hosting/task.hosting.inc
Validate hook for the hosting-task Drush command.

File

modules/hosting/task.hosting.inc, line 11
Drush include for the Hosting module's hosting task command.

Code

function _hosting_task_log($entry) {
  $task = drush_get_context('HOSTING_TASK');
  if ($task->vid) {
    hosting_task_log($task->vid, $entry['type'], $entry['message'], $entry['error'], $entry['timestamp']);
  }
  else {
    return _drush_print_log($entry);
  }
  if (drush_get_option('debug', FALSE)) {
    return _drush_print_log($entry);
  }
}