You are here

function ultimate_cron_watchdog in Ultimate Cron 7

Same name and namespace in other branches
  1. 8 ultimate_cron.module \ultimate_cron_watchdog()
  2. 6 ultimate_cron.module \ultimate_cron_watchdog()
  3. 7.2 ultimate_cron.module \ultimate_cron_watchdog()

Implements hook_watchdog().

File

./ultimate_cron.module, line 520
@todo Add filter on overview page. @todo Add log view (with graph). @todo Make proper markup for overview page. @todo Refactor drush stuff, too many intimate relations with Background Process @todo Refactor Cron % offset stuff. Too mixed up and…

Code

function ultimate_cron_watchdog($log = array()) {
  $record =& drupal_static('ultimate_cron_record', FALSE);
  if ($record) {
    $log['variables'] = is_array($log['variables']) ? $log['variables'] : array();
    ultimate_cron_record_log(t($log['message'], $log['variables']), FALSE, $log['severity']);
  }
}