Skip to content
Snippets Groups Projects
Commit 76c2ae78 authored by Antoine Beaupré's avatar Antoine Beaupré
Browse files

add debugging output of the cron job

parent 9d16d8a5
Branches
Tags 6.x-1.2
No related merge requests found
......@@ -41,6 +41,7 @@ function hosting_cron_queue($count) {
if (!empty($site->cron_key)) {
$url .= '?cron_key=' . rawurlencode($site->cron_key);
}
drush_log(dt("running cron on URL %url", array('%url' => $url)));
$response = drupal_http_request($url);
if (isset($response->error) && $response->error) {
watchdog('hosting_cron', 'cron failed on site %site with error %error', array('%site' => $site->title, '%error' => $response->error), WATCHDOG_NOTICE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment