Merge pull request #3567 from lcdservices/CRM-14921
[civicrm-core.git] / CRM / Core / Error.php
index f11d4ba618854b1c090c83970df440c5284c2283..dce8a2e01d6b5dc8803779422505d3d48a6c2b54 100644 (file)
@@ -591,6 +591,7 @@ class CRM_Core_Error extends PEAR_ErrorStack {
     $file_log->close();
 
     if ($config->userFrameworkLogging) {
+      // should call $config->userSystem->logger($message) here - but I got a situation where userSystem was not an object - not sure why
       if ($config->userSystem->is_drupal and function_exists('watchdog')) {
         watchdog('civicrm', $message, NULL, WATCHDOG_DEBUG);
       }