You are here

function _hosting_task_log in Hosting 7.3

Same name and namespace in other branches
  1. 5 task.hosting.inc \_hosting_task_log()
  2. 6.2 task.hosting.inc \_hosting_task_log()
  3. 7.4 task.hosting.inc \_hosting_task_log()

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 ./task.hosting.inc
Validate hook for the hosting-task Drush command.

File

./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 {
    _hosting_task_log_print($entry);
  }
  if (drush_get_option('debug', FALSE)) {
    _hosting_task_log_print($entry);
  }
}