CRM-15929 - Drupal watchdog
[civicrm-core.git] / CRM / Core / Error.php
index e3cb5a4d7bb711185d96135fb9e1ccdb87afc69b..652d55832af0e49ff03acb8ca6c00458fbaed634 100644 (file)
@@ -593,7 +593,7 @@ class CRM_Core_Error extends PEAR_ErrorStack {
     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);
+        watchdog('civicrm', '%message', array('%message' => $message), WATCHDOG_DEBUG);
       }
     }