From 6f12b3443c9d9dc5be70d1c07d18eac15123fa47 Mon Sep 17 00:00:00 2001 From: Sunil Pawar Date: Mon, 10 Aug 2020 17:42:20 +0530 Subject: [PATCH] small correction --- CRM/Core/Error.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/Error.php b/CRM/Core/Error.php index 215e336426..46c61d2c9b 100644 --- a/CRM/Core/Error.php +++ b/CRM/Core/Error.php @@ -586,7 +586,7 @@ class CRM_Core_Error extends PEAR_ErrorStack { if ($config->userSystem->is_drupal and function_exists('watchdog')) { watchdog('civicrm', '%message', ['%message' => $message], $priority ?? WATCHDOG_DEBUG); } - else if ($config->userSystem->is_drupal and CIVICRM_UF == 'Drupal8') { + elseif ($config->userSystem->is_drupal and CIVICRM_UF == 'Drupal8') { \Drupal::logger('civicrm')->debug($message); } } -- 2.25.1