From ac056893bd4a6816bc6c8b262cd0f30f87c5cad3 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Mon, 23 Jun 2014 11:39:37 +1200 Subject: [PATCH] CRM-14850 update use of ufLogging to not call ->is_drupal --- CRM/Core/Error.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/CRM/Core/Error.php b/CRM/Core/Error.php index f11d4ba618..87b60d3756 100644 --- a/CRM/Core/Error.php +++ b/CRM/Core/Error.php @@ -580,7 +580,6 @@ class CRM_Core_Error extends PEAR_ErrorStack { * @static */ static function debug_log_message($message, $out = FALSE, $comp = '') { - $config = CRM_Core_Config::singleton(); $file_log = self::createDebugLogger($comp); $file_log->log("$message\n"); @@ -590,11 +589,7 @@ class CRM_Core_Error extends PEAR_ErrorStack { } $file_log->close(); - if ($config->userFrameworkLogging) { - if ($config->userSystem->is_drupal and function_exists('watchdog')) { - watchdog('civicrm', $message, NULL, WATCHDOG_DEBUG); - } - } + if (CRM_Core_Config::singleton()->userSystem->logger($message)); return $str; } -- 2.25.1