You are here

function hosting_task_log in Hosting 5

Same name and namespace in other branches
  1. 6.2 task/hosting_task.module \hosting_task_log()
  2. 7.4 task/hosting_task.module \hosting_task_log()
  3. 7.3 task/hosting_task.module \hosting_task_log()
2 calls to hosting_task_log()
hosting_task_retry in task/hosting_task.module
_hosting_task_log in ./task.hosting.inc

File

task/hosting_task.module, line 66
Web server node type is defined here.

Code

function hosting_task_log($vid, $type, $message, $error = '', $timestamp = null) {
  $timestamp = $timestamp ? $timestamp : mktime();
  db_query("INSERT INTO {hosting_task_log} (vid, type, message, error, timestamp) VALUES (%d, '%s', '%s', '%s', %d)", $vid, $type, $message, $error, $timestamp);
}