From 9f5e1f2b3787a64394fb4ec19257902ef80e5027 Mon Sep 17 00:00:00 2001 From: Alex Finnarn Date: Wed, 7 Feb 2024 10:52:05 -0500 Subject: [PATCH] add more debugging to cron run --- .../custom/va_gov_content_release/src/Form/NextGitForm.php | 2 +- .../va_gov_content_release/va_gov_content_release.module | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docroot/modules/custom/va_gov_content_release/src/Form/NextGitForm.php b/docroot/modules/custom/va_gov_content_release/src/Form/NextGitForm.php index deb790eeff..02786aca63 100644 --- a/docroot/modules/custom/va_gov_content_release/src/Form/NextGitForm.php +++ b/docroot/modules/custom/va_gov_content_release/src/Form/NextGitForm.php @@ -287,7 +287,7 @@ public function submitForm(array &$form, FormStateInterface $form_state) { else { $file = 'public://next-buildrequest.txt'; file_put_contents($file, 'build me Seymour!'); - $this->messenger()->addMessage($this->t('Build lock file set.')); + $this->messenger()->addMessage($this->t('Build request file set.')); } } diff --git a/docroot/modules/custom/va_gov_content_release/va_gov_content_release.module b/docroot/modules/custom/va_gov_content_release/va_gov_content_release.module index 335d982354..67ca057943 100644 --- a/docroot/modules/custom/va_gov_content_release/va_gov_content_release.module +++ b/docroot/modules/custom/va_gov_content_release/va_gov_content_release.module @@ -9,6 +9,9 @@ * Implements hook_cron(). */ function va_gov_content_release_cron(): void { + // Log cron run starting. + \Drupal::logger('va_gov_content_release')->info('Cron run starting.'); + // Run script in dirname(DRUPAL_ROOT) directory. $script = dirname(DRUPAL_ROOT) . '/scripts/queue_runner/next_queue_runner.sh'; // Run script in background if it exists.