Commit 9f5f52d8 authored by Damien McKenna's avatar Damien McKenna Committed by Dmitry Kiselev
Browse files

Issue #3240853 by DamienMcKenna, kala4ek: Log when Elysia Cron starts & ends its tasks

parent e1a54563
Loading
Loading
Loading
Loading
+5
Changes for elysia_cron.module: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -150,6 +150,9 @@ function elysia_cron_cron() {
    return;
  }

  // Log that cron started.
  elysia_cron_debug('Started Elysia Cron.');

  // If cron has been executed via "drush core-cron" or any other custom drush
  // command then we run internal cron handler which is designed to handle
  // cron executions from drush.
@@ -166,9 +169,11 @@ function elysia_cron_cron() {

  if ($manual_run) {
    if ($result) {
      elysia_cron_debug('Cron ran successfully.');
      elysia_cron_message('Cron ran successfully');
    }
    else {
      elysia_cron_debug('Cron run failed, disabled or nothing to do.');
      elysia_cron_message('Cron run failed, disabled or nothing to do');
    }
    // In manual execution it's better to set cron_last variable in standard way